Last active
May 7, 2022 09:35
-
-
Save skulltech/6adacd1b1b8a5196795906d89871d964 to your computer and use it in GitHub Desktop.
Solana x Anchor Github Action
This file contains hidden or 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: Build | |
on: | |
pull_request: | |
branches: [master] | |
types: [opened, reopened, updated, synchronize] | |
jobs: | |
format: | |
name: Format and lint code | |
runs-on: ubuntu-latest | |
container: projectserum/build:v0.24.2 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Format code | |
run: cargo fmt --all -- --check | |
- name: Lint code | |
run: cargo clippy -- -D warnings --warn clippy::all | |
run-tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
container: projectserum/build:v0.24.2 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
- name: Install Node dependencies | |
run: yarn install | |
- name: Create a new Solana keypair | |
run: solana-keygen new -s --no-bip39-passphrase | |
- name: Run tests | |
run: yarn test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment