Merge pull request #64 from Dual-Finance/partner-fees #72
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 | |
on: | |
push: | |
branches: master | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: projectserum/build:v0.26.0 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: List rustup toolchains | |
run: rustup toolchain list | |
- name: Set default toolchain | |
run: rustup default stable | |
- name: List rustup toolchains | |
run: rustup toolchain list | |
- name: Generate new keygen | |
run: solana-keygen new --no-bip39-passphrase | |
- name: Check solana config | |
run: solana config get | |
- name: Install yarn dependencies | |
run: | | |
yarn install | |
yarn add ts-mocha | |
- name: Solana version | |
run: solana --version | |
- name: Upgrade solana | |
run: sh -c "$(curl -sSfL https://release.solana.com/v1.14.2/install)" | |
- name: Update path | |
run: echo "/github/home/.local/share/solana/install/active_release/bin:$PATH" >> $GITHUB_PATH | |
- name: Echo path | |
run: echo $PATH | |
- name: Solana version | |
run: solana --version | |
- name: Build | |
run: anchor build | |
- uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 120 | |
max_attempts: 3 | |
command: | | |
sleep 10 | |
anchor build | |
anchor deploy | |
sleep 10 | |
anchor test |