Skip to content

Commit

Permalink
👷 Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielePicco committed Oct 2, 2024
1 parent 84dc420 commit 426d6e7
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- main

env:
solana_version: v1.18.24
solana_version: v1.18.15

jobs:
install:
Expand All @@ -26,7 +26,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 21
node-version: 20

- name: install essentials
run: |
Expand All @@ -48,15 +48,16 @@ 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

- 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
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 426d6e7

Please sign in to comment.