diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 7fff273..2d65af2 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -16,6 +16,12 @@ jobs: - uses: actions/checkout@v2 - name: Create Test Media run: cd tests; sh create_test_media.sh + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose + env: + RUSTFLAGS: "-C instrument-coverage" - name: rust-grcov # You may pin to the exact commit or the version. # uses: actions-rs/grcov@bb47b1ed7883a1502fa6875d562727ace2511248 @@ -23,12 +29,6 @@ jobs: # with: # Path to the configuration file (optional, relative to the repository root) # config: # optional, default is .github/actions-rs/grcov.yml - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose - env: - RUSTFLAGS: "-C instrument-coverage" - name: Codecov uses: codecov/codecov-action@v3.1.4