From 5f296092fb59be389b3eb47d7378a837ce020c61 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 16 Sep 2024 17:25:07 +0100 Subject: [PATCH] test: use correct matrix syntax --- .forgejo/workflows/test.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 5434bd4..54079b4 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -5,20 +5,26 @@ on: jobs: test: runs-on: docker + strategy: + matrix: + toolchain: + - name: stable + - name: nightly + steps: - uses: actions/checkout@v4 - name: Test uses: https://git.kemitix.net/kemitix/rust@next with: - args: cargo test + args: ${{ matrix.toolchain.name }} cargo test - name: Build uses: https://git.kemitix.net/kemitix/rust@next with: - args: cargo build + args: ${{ matrix.toolchain.name }} cargo build - name: Run uses: https://git.kemitix.net/kemitix/rust@next with: - args: cargo run + args: ${{ matrix.toolchain.name }} cargo run