Skip to content

Commit 8afb7b8

Browse files
committed
Move to using make for devx reasons
1 parent a161d25 commit 8afb7b8

File tree

1 file changed

+8
-41
lines changed

1 file changed

+8
-41
lines changed

.github/workflows/solana-integration.yml

+8-41
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
uses: styfle/cancel-workflow-action@0.9.1
1616
with:
1717
access_token: ${{ github.token }}
18-
cargo-clippy-and-lint:
19-
name: Clippy Checks
18+
make-lint:
19+
name: make lint
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v4
@@ -25,52 +25,19 @@ jobs:
2525
with:
2626
toolchain: ${{ env.RUSTC_VERSION }}
2727
components: clippy, rustfmt
28-
- name: cargo fmt --check
29-
run: cargo fmt --check
28+
- name: make lint
29+
run: make lint
3030
working-directory: ./solana
31-
- name: cargo clippy --locked --no-deps --all-targets --features testnet -- -D warnings
32-
run: cargo clippy --locked --no-deps --all-targets --features testnet -- -D warnings
33-
working-directory: ./solana
34-
- name: cargo clippy --locked --no-deps --all-targets --features localnet -- -D warnings
35-
run: cargo clippy --locked --no-deps --all-targets --features localnet -- -D warnings
36-
working-directory: ./solana
37-
test:
38-
name: Run Tests
31+
make-test:
32+
name: make test
3933
runs-on: ubuntu-latest
4034
# Anchor Docker image: https://www.anchor-lang.com/docs/verifiable-builds#images
4135
container: backpackapp/build:v0.29.0
4236
steps:
4337
- uses: actions/checkout@v4
44-
- name: Install NPM dependencies
45-
run: npm ci
46-
working-directory: ./solana
4738
- name: Set default Rust toolchain
4839
run: rustup default stable
4940
working-directory: ./solana
50-
- name: cargo test --features localnet --no-default-features
51-
run: cargo test --features localnet --no-default-features
52-
working-directory: ./solana
53-
- name: cargo test --features testnet --no-default-features
54-
run: cargo test --features testnet --no-default-features
55-
working-directory: ./solana
56-
- name: anchor build --arch sbf -- --features testnet
57-
run: anchor build --arch sbf -- --features testnet
58-
working-directory: ./solana
59-
- name: Create artifact directory
60-
run: mkdir -p ts/tests/artifacts
61-
working-directory: ./solana
62-
- name: Copy Testnet Matching Engine Object
63-
run: cp target/deploy/matching_engine.so ts/tests/artifacts/testnet_matching_engine.so
64-
working-directory: ./solana
65-
- name: Copy Testnet Token Router Object
66-
run: cp target/deploy/token_router.so ts/tests/artifacts/testnet_token_router.so
67-
working-directory: ./solana
68-
- name: Copy Upgrade Manager Object
69-
run: cp target/deploy/upgrade_manager.so ts/tests/artifacts/testnet_upgrade_manager.so
70-
working-directory: ./solana
71-
- name: anchor build --arch sbf -- --features integration-test
72-
run: anchor build --arch sbf -- --features integration-test
73-
working-directory: ./solana
74-
- name: anchor test --skip-build
75-
run: anchor test --skip-build
41+
- name: make test
42+
run: make test
7643
working-directory: ./solana

0 commit comments

Comments
 (0)