diff --git a/.github/workflows/rust-build-and-test.yml b/.github/workflows/rust-build-and-test.yml index 4734c04..c851b05 100644 --- a/.github/workflows/rust-build-and-test.yml +++ b/.github/workflows/rust-build-and-test.yml @@ -2,7 +2,7 @@ name: Build and test Rust code on: push: - branches: [ "master" ] + branches: [ "master", "dev" ] pull_request: branches: [ "master", "dev" ] @@ -18,12 +18,18 @@ jobs: - name: Checkout repository uses: actions/checkout@v4.1.1 - 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