Skip to content

Commit

Permalink
Merge pull request #13 from madrugada-labs/setting-up-ci
Browse files Browse the repository at this point in the history
set up anchor CI
  • Loading branch information
blasrodri authored Jun 9, 2022
2 parents 21a2781 + 854c844 commit ca62ee4
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Solana Action name
on:
push:
branches: [main]

env:
SOLANA_VERSION: v1.9.9
ANCHOR_VERSION: 0.24.2

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Use Node.js
- uses: actions/setup-node@v3
with:
node-version: 16.14.2
cache: "npm"
- run: npm install
- run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
shell: bash
- run: echo "/home/runner/.cargo/bin" >> $GITHUB_PATH
shell: bash
- run: curl -sSfL https://release.solana.com/$SOLANA_VERSION/install | sh
shell: bash
- run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
shell: bash
- run: npm i -g @project-serum/anchor-cli@$ANCHOR_VERSION ts-mocha typescript
- run: anchor test

0 comments on commit ca62ee4

Please sign in to comment.