chore: add GitHub Workflow #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test and Build Anchor | |
on: [push] | |
jobs: | |
run-anchor-build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.18.0 | |
cache: 'pnpm' | |
- uses: metadaoproject/[email protected] | |
with: | |
anchor-version: '0.30.1' | |
node-version: '20.18.0' | |
solana-cli-version: '1.18.9' | |
- run: anchor build | |
shell: bash | |
- run: anchor test | |
shell: bash |