Runs and checks if your code is compliant to Epitech's Coding Style
A typical GitHub workflow would work like that:
on:
push:
jobs:
check-coding-style:
runs-on: ubuntu-latest
name: Check Coding Style
steps:
- uses: actions/checkout@v5
- uses: hugoschool/cs2-action@v1This runs cs2 at the root of your repo and reports all the Coding Style errors in a GitHub friendly way.
install_only: Doesn't run cs2, only installs it for youcompile_source: Compile cs2 from source instead of downloading latest releaseref: Only works withcompile_sourceinput, specify which ref (commit, branch, tag) to compile frompath: Run cs2 in this directoryoptions: Run cs2 with these options (example:-j2)
Checkout action.yml for more information.
Using options is done with the with keyword:
# ...
steps:
- uses: actions/checkout@v5
- uses: hugoschool/cs2-action@v1
with:
path: tests/
install_only: true