Skip to content

Commit

Permalink
fix: revive testing tooling (#336)
Browse files Browse the repository at this point in the history
After some inactivity, some of the testing tooling were not working anymore.

This PR revive the whole CI pipeline to work again.

Update dependencies to:
 - Solana: `1.18.21` (same as mainnet/devnet)
 - Rust: `1.75.0` (this seems to work fine for now, but `1.80.1` doesn't work)
 - Anchor: `0.26.0` (same as anchor_gen)

Note: Credix disabled minting on devnet, so we remove the devnet+credixMint tests (those tests are still running fine in localnet)
  • Loading branch information
crypto-vincent authored Aug 19, 2024
1 parent d09b68d commit c0c8b32
Show file tree
Hide file tree
Showing 25 changed files with 2,211 additions and 1,227 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-anchor-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ permissions:

env:
CARGO_TERM_COLOR: always
RUST_TOOLCHAIN: 1.66
SOLANA_VERSION: 1.14.21
ANCHOR_VERSION: 0.27.0
RUST_TOOLCHAIN: 1.75.0
SOLANA_VERSION: 1.18.21
ANCHOR_VERSION: 0.26.0
CLUSTER: 'devnet'
DEVNET_RPC: https://api.devnet.solana.com
# Default wallet
Expand All @@ -27,7 +27,7 @@ env:
#
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
#
DEPLOYMENT_FUNDING_AMOUNT: 10
DEPLOYMENT_FUNDING_AMOUNT: 20
TRANSACTION_FEE_OFFSET: 0.005
# Name of the tests files in the program repo. We use them for sed and swap the `anchor test`
TEST_DEV: 'test_development'
Expand All @@ -54,7 +54,7 @@ jobs:
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
override: true
profile: minimal
profile: default
# Install solana
- name: Cache Solana Tool Suite
uses: actions/cache@v2
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/ci-cargo-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ jobs:
# - RUSTSEC-2020-0071 -> No fixes available, ignored by solana-labs: https://github.com/solana-labs/solana/blob/master/ci/do-audit.sh
# - RUSTSEC-2022-0093 -> No fixes available, ignored by solana-labs: https://github.com/solana-labs/solana/blob/master/ci/do-audit.sh
# - RUSTSEC-2023-0001 -> No fixes available, ignored by solana-labs: https://github.com/solana-labs/solana/blob/master/ci/do-audit.sh
# - RUSTSEC-2023-0052 -> Fixed by upgrading to v1.16 solana, ignored by solana-labs before v1.16: https://github.com/solana-labs/solana/issues/32933
# - RUSTSEC-2023-0063 -> Fixed by upgrading to v1.16 solana, ignored by solana-labs before v1.16: https://github.com/solana-labs/solana/pull/33355
# - RUSTSEC-2023-0065 -> Only a problem on solana-program-test, used for local testing only
run: >
cargo audit -c always
--ignore RUSTSEC-2020-0071
--ignore RUSTSEC-2022-0093
--ignore RUSTSEC-2023-0001
--ignore RUSTSEC-2023-0052
--ignore RUSTSEC-2023-0063
--ignore RUSTSEC-2023-0065
--ignore RUSTSEC-2024-0344
12 changes: 6 additions & 6 deletions .github/workflows/ci-cargo-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:

env:
CARGO_TERM_COLOR: always
RUST_TOOLCHAIN: 1.66
SOLANA_VERSION: 1.14.21
RUST_TOOLCHAIN: 1.75.0
SOLANA_VERSION: 1.18.21

defaults:
run:
Expand All @@ -35,7 +35,7 @@ jobs:
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
override: true
profile: minimal
profile: default
components: rustfmt, clippy

# Run cargo fmt
Expand All @@ -57,7 +57,7 @@ jobs:
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
override: true
profile: minimal
profile: default
components: rustfmt, clippy

# Run cargo clippy
Expand All @@ -79,7 +79,7 @@ jobs:
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
override: true
profile: minimal
profile: default
components: rustfmt, clippy

# Install Solana
Expand All @@ -103,4 +103,4 @@ jobs:
# Run tests
- name: Run tests
run: cargo test-bpf
run: cargo test
27 changes: 0 additions & 27 deletions .github/workflows/ci-sec3-vulnerability-scanning.yml

This file was deleted.

Loading

0 comments on commit c0c8b32

Please sign in to comment.