From 26db7106a1c2461ca3ec09e767b2b1e4e4a2f8a2 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 17 Sep 2024 14:42:23 +0100 Subject: [PATCH] build: run test against Rust nightly --- .forgejo/workflows/push-next.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/push-next.yml b/.forgejo/workflows/push-next.yml index 894505b..e7d0ae5 100644 --- a/.forgejo/workflows/push-next.yml +++ b/.forgejo/workflows/push-next.yml @@ -13,6 +13,12 @@ jobs: build: runs-on: docker + strategy: + matrix: + toolchain: + - name: stable + - name: nightly + steps: - name: Checkout uses: actions/checkout@v4 @@ -20,7 +26,7 @@ jobs: - name: Format uses: https://git.kemitix.net/kemitix/rust@v2.0.4 with: - args: cargo fmt --all -- --check + args: ${{ matrix.toolchain.name }} cargo fmt --all -- --check # - name: Machete # uses: https://github.com/bnjbvr/cargo-machete@v0.6.2 @@ -28,17 +34,17 @@ jobs: - name: Clippy uses: https://git.kemitix.net/kemitix/rust@v2.0.4 with: - args: cargo clippy + args: ${{ matrix.toolchain.name }} cargo clippy - name: Build uses: https://git.kemitix.net/kemitix/rust@v2.0.4 with: - args: cargo build + args: ${{ matrix.toolchain.name }} cargo build - name: Test uses: https://git.kemitix.net/kemitix/rust@v2.0.4 with: - args: cargo test --no-fail-fast + args: ${{ matrix.toolchain.name }} cargo test --no-fail-fast - name: Integration uses: https://git.kemitix.net/kemitix/rust@v2.0.4