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-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4.1.7
- name: Test Solutions
uses: threeal/leettest-action@v0.2.0
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/leettest-action@v0.2.0
with:
files: |
problems/2235/solution.cpp
other-problems/**/solution.cpp
This project is licensed under the terms of the MIT License.
Copyright © 2024 Alfi Maulana