feat: workflow for debugging #361
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lockbud | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**/*.md' | |
| jobs: | |
| test: | |
| name: lockbud | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Generate code coverage | |
| run: | | |
| git clone https://github.com/Cyrix126/lockbud.git | |
| cd lockbud | |
| cargo install --path . | |
| cd .. | |
| cargo clean | |
| cargo lockbud -k deadlock -l gupaxx &> >(tee log.out) | |
| if grep -q "WARN" log.out; then | |
| echo "Lockbud warnings found:" | |
| echo "$output" | |
| exit 1 | |
| fi |