Skip to content

Commit 83bfe87

Browse files
committed
chore(ci): Add anchor keys sync step in reusable tests workflow
1 parent fc516a5 commit 83bfe87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/reusable-tests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ jobs:
152152
path: ./examples/tutorial/basic-4/target
153153
key: cargo-${{ runner.os }}-${{ hashFiles('./examples/tutorial/basic-4/**/Cargo.toml') }}-${{ env.SOLANA_CLI_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
154154

155+
- run: cd examples/tutorial && anchor keys sync
155156
- run: cd examples/tutorial && yarn workspaces run test
156157
- uses: ./.github/actions/git-diff/
157158

@@ -185,6 +186,7 @@ jobs:
185186
path: ~/.cargo/bin/
186187
- run: chmod +rwx ~/.cargo/bin/anchor
187188

189+
- run: cd ${{ matrix.node.path }} && anchor keys sync
188190
- run: cd ${{ matrix.node.path }} && anchor build --skip-lint
189191
- uses: actions/upload-artifact@v4
190192
with:
@@ -276,6 +278,7 @@ jobs:
276278
name: start validator
277279
- run: cd tests/bpf-upgradeable-state && yarn --frozen-lockfile
278280
- run: cd tests/bpf-upgradeable-state
281+
- run: cd tests/bpf-upgradeable-state && anchor keys sync
279282
- run: cd tests/bpf-upgradeable-state && anchor build --skip-lint
280283
- run: cd tests/bpf-upgradeable-state && solana program deploy --program-id program_with_different_programdata.json target/deploy/bpf_upgradeable_state.so
281284
- run: cd tests/bpf-upgradeable-state && cp bpf_upgradeable_state-keypair.json target/deploy/bpf_upgradeable_state-keypair.json && anchor test --skip-local-validator --skip-build --skip-lint
@@ -490,6 +493,7 @@ jobs:
490493
path: ${{ matrix.node.path }}/target
491494
key: cargo-${{ runner.os }}-${{ matrix.node.path }}-${{ env.ANCHOR_VERSION }}-${{ env.SOLANA_CLI_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
492495

496+
- run: cd ${{ matrix.node.path }} && anchor keys sync
493497
- run: ${{ matrix.node.cmd }}
494498
name: ${{ matrix.node.path }} program test
495499

0 commit comments

Comments
 (0)