Skip to content

Commit

Permalink
ci: migrate to nextest, have actions run on push to master and dev
Browse files Browse the repository at this point in the history
  • Loading branch information
simongoricar committed Mar 17, 2024
1 parent e519d76 commit 649c17e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/rust-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and test Rust code

on:
push:
branches: [ "master" ]
branches: [ "master", "dev" ]
pull_request:
branches: [ "master", "dev" ]

Expand All @@ -18,12 +18,18 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]
- name: Install stable Rust
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Install nextest
uses: taiki-e/install-action@v2
with:
tool: nextest
- name: Cache
uses: Swatinem/rust-cache@v2
- name: Build
- name: Compile project
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run unit and integration tests
run: cargo nextest run --all-features --all-targets --workspace --verbose
- name: Run documentation tests
run: cargo test --all-features --doc --verbose

0 comments on commit 649c17e

Please sign in to comment.