diff --git a/.config/nextest.toml b/.config/nextest.toml new file mode 100644 index 0000000..18e4061 --- /dev/null +++ b/.config/nextest.toml @@ -0,0 +1,3 @@ +[profile.ci] +# Don't fail fast in CI to run the full test suite. +fail-fast = false diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cfaf7b2..cd8f1bb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -27,7 +27,25 @@ jobs: - uses: actions/checkout@v3 - name: Check run: cargo check - build: +# TODO: not needed for now +# build: +# runs-on: ubuntu-latest +# needs: check +# steps: +# - name: Cache +# uses: actions/cache@v3.0.11 +# with: +# path: | +# ~/.cargo/bin/ +# ~/.cargo/registry/index/ +# ~/.cargo/registry/cache/ +# ~/.cargo/git/db/ +# ~/cargo-target/ +# key: "rust-build" +# - uses: actions/checkout@v3 +# - name: Build +# run: cargo build + test: runs-on: ubuntu-latest needs: check steps: @@ -41,24 +59,15 @@ jobs: ~/.cargo/git/db/ ~/cargo-target/ key: "rust-build" -# TODO: not needed for now -# - uses: actions/checkout@v3 -# - name: Build -# run: cargo build - test: - runs-on: ubuntu-latest - needs: build - steps: - - name: Cache - uses: actions/cache@v3.0.11 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - ~/cargo-target/ - key: "rust-build" + - name: Install nextest + uses: taiki-e/install-action@nextest - uses: actions/checkout@v3 +# - name: Run unit tests +# run: cargo nextest run - name: Run unit tests - run: cargo test + uses: actions-rs/cargo@v1 + with: + command: nextest + args: run --all-features --profile ci + - name: Run documentation tests + run: cargo test --doc