From 1bf3c1033495b018bc85eabcd22c1a95f186c720 Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Thu, 7 Dec 2023 16:05:16 +0000 Subject: [PATCH] Updating .github/test.yaml --- .github/workflows/test.yml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e803590d..9a037f5b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,20 +2,31 @@ name: Run tests on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] env: CARGO_TERM_COLOR: always jobs: - build: - + check-rust-compat: runs-on: ubuntu-latest - + strategy: + matrix: + rust_version: ["1.72", "1.73", "1.74"] + steps: + - name: rustup toolchain install ${{ matrix.rust_version }} + run: | + rustup toolchain install ${{ matrix.rust_version }} + - uses: actions/checkout@v2 + - run: rustup override set ${{ matrix.rust_version }} + - name: cargo check + run: cargo check + test: + runs-on: windows-latest steps: - - uses: actions/checkout@v2 - - uses: Swatinem/rust-cache@v1 - - name: Run tests - run: cargo test + - uses: actions/checkout@v2 + - uses: Swatinem/rust-cache@v1 + - name: Run tests + run: cargo test