An open API service indexing awesome lists of open source software.

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

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/)