From 426d6e7771b1bc42edd589a231273eb341451a96 Mon Sep 17 00:00:00 2001 From: Gabriele Picco Date: Wed, 2 Oct 2024 13:04:01 +0700 Subject: [PATCH] :construction_worker: Update CI --- .github/workflows/run-tests.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 45d2555..39c6f65 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -8,7 +8,7 @@ on: - main env: - solana_version: v1.18.24 + solana_version: v1.18.15 jobs: install: @@ -26,7 +26,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 21 + node-version: 20 - name: install essentials run: | @@ -48,7 +48,8 @@ jobs: - name: install rust uses: dtolnay/rust-toolchain@stable with: - toolchain: ./rust-toolchain.toml + toolchain: stable + components: rustfmt - name: Cache rust uses: Swatinem/rust-cache@v2 @@ -56,7 +57,7 @@ jobs: - name: install solana if: steps.cache-solana.outputs.cache-hit != 'true' run: | - sh -c "$(curl -sSfL https://release.anza.xyz/${{ env.solana_version }}/install)" + sh -c "$(curl -sSfL https://release.solana.com/${{ env.solana_version }}/install)" export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH" solana --version @@ -68,8 +69,10 @@ jobs: - uses: actions/checkout@v4 - name: Cache rust uses: Swatinem/rust-cache@v2 + - name: Check Rust version + run: rustc --version - name: Run fmt - run: cargo fmt -- --check + run: cargo fmt -- --check --verbose - name: Run clippy run: cargo clippy -- --deny=warnings @@ -100,7 +103,7 @@ jobs: - name: install rust uses: dtolnay/rust-toolchain@stable with: - toolchain: ./rust-toolchain.toml + toolchain: stable - name: Cache rust uses: Swatinem/rust-cache@v2 @@ -110,7 +113,7 @@ jobs: - name: Use Node ${{ matrix.node }} uses: actions/setup-node@v4 with: - node-version: 21 + node-version: 20 - name: Cache node dependencies uses: actions/cache@v3