https://github.com/threeal/leettest-action
Compile and test solutions to LeetCode problems on GitHub Actions
https://github.com/threeal/leettest-action
Last synced: about 1 year ago
JSON representation
Compile and test solutions to LeetCode problems on GitHub Actions
- Host: GitHub
- URL: https://github.com/threeal/leettest-action
- Owner: threeal
- License: mit
- Created: 2024-04-08T08:28:34.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-12T12:59:19.000Z (about 1 year ago)
- Last Synced: 2025-04-12T13:57:26.440Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 2.29 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LeetTest Action
Compile and test solutions to [LeetCode](https://leetcode.com/) problems on GitHub Actions.
## Available Inputs
| Name | Type | Description |
| ------- | ---------------- | ---------------------------------------------------------------------------------- |
| `files` | Multiple strings | A list of pattern for solution files to process. It defaults to `**/solution.cpp`. |
## Example Usages
This example demonstrates how to use this action to compile and test solutions to LeetCode problems in a GitHub Actions workflow:
```yaml
name: Test
on:
push:
jobs:
test-solutions:
name: Test Solutions
runs-on: ubuntu-24.04
steps:
- name: Checkout Project
uses: actions/checkout@v4.2.0
- name: Test Solutions
uses: threeal/leettest-action@v0.2.0
```
### Testing Specific Solution Files
By default, this action tests all solution files in the current working directory. To specify the solution files to test, set the `files` input:
```yaml
- name: Test Solutions
uses: threeal/leettest-action@v0.2.0
with:
files: |
problems/2235/solution.cpp
other-problems/**/solution.cpp
```
## License
This project is licensed under the terms of the [MIT License](./LICENSE).
Copyright © 2024-2025 [Alfi Maulana](https://github.com/threeal/)