Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MEhrn00 committed Feb 24, 2024
1 parent 0d65b51 commit 9c57452
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,22 @@ jobs:
mv grcov /usr/local/bin
rm -rf grcov.tar.bz2
- name: Run tests
- name: Run coverage tests
if: ${{ runner.os == 'Linux' }}
working-directory: ${{ env.AGENT_CODE }}
run: |
cargo build -p genconfig
cargo test --color always --workspace --exclude genconfig --exclude config --all-features
env:
RUSTFLAGS: -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Cinstrument-coverage

- name: Run tests
if: ${{ runner.os == 'Windows' }}
working-directory: ${{ env.AGENT_CODE }}
run: |
cargo build -p genconfig
cargo test --color always --workspace --exclude genconfig --exclude config --all-features
- name: Generate code coverage artifacts (Linux)
if: ${{ runner.os == 'Linux' }}
run: |
Expand Down

0 comments on commit 9c57452

Please sign in to comment.