feat: add verifiable build to ci #1760
Workflow file for this run
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: Anchor Test CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16.13" | |
- name: Npm install | |
run: npm ci | |
- name: Install Solana | |
run: | | |
sh -c "$(curl -sSfL https://release.solana.com/v1.14.20/install)" | |
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH | |
- name: Install Anchor | |
working-directory: ./staking | |
run: npm i -g @coral-xyz/[email protected] | |
- name: Anchor test | |
working-directory: ./staking | |
run: npm run test:ci | |
- name: Check commited idl is up to date | |
working-directory: ./staking | |
run: git diff --exit-code target/* |