Compile and test solutions to LeetCode problems on GitHub Actions.
| Name | Type | Description |
|---|---|---|
files |
Multiple strings | A list of pattern for solution files to process. It defaults to **/solution.cpp. |
This example demonstrates how to use this action to compile and test solutions to LeetCode problems in a GitHub Actions workflow:
name: Test
on:
push:
jobs:
test-solutions:
name: Test Solutions
runs-on: ubuntu-24.04
steps:
- name: Checkout Project
uses: actions/[email protected]
- name: Test Solutions
uses: threeal/[email protected]By default, this action tests all solution files in the current working directory. To specify the solution files to test, set the files input:
- name: Test Solutions
uses: threeal/[email protected]
with:
files: |
problems/2235/solution.cpp
other-problems/**/solution.cppThis project is licensed under the terms of the MIT License.
Copyright © 2024-2025 Alfi Maulana