Skip to content

Commit

Permalink
ci: separate integration tests
Browse files Browse the repository at this point in the history
`runtime-benchmarks` feature should not be used for integration tests.
  • Loading branch information
evilrobot-01 committed Jul 27, 2024
1 parent 631ca9c commit 88e7a06
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,18 @@ jobs:
- uses: "./.github/actions/init"

- name: Run tests
run: cargo test --release --locked --verbose --workspace --features=runtime-benchmarks
run: cargo test --release --locked --verbose --workspace --features=runtime-benchmarks --exclude integration-tests

integration-tests:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: "./.github/actions/init"

- name: Run integration tests
run: cargo test --release --locked --package integration-tests

coverage:
needs: lint
Expand All @@ -68,7 +79,7 @@ jobs:
uses: taiki-e/install-action@cargo-llvm-cov

- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lib --bins --codecov --output-path codecov.json
run: cargo llvm-cov --all-features --workspace --exclude integration-tests --lib --bins --codecov --output-path codecov.json

- name: Upload to codecov.io
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit 88e7a06

Please sign in to comment.