-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (42 loc) · 1.29 KB
/
solana-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Solana Integration Checks
on:
push:
branches:
- solana/integration
pull_request: null
env:
RUSTC_VERSION: 1.76.0
jobs:
cancel-previous-runs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
make-lint:
name: make lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUSTC_VERSION }}
components: clippy, rustfmt
- name: make lint
run: make lint
working-directory: ./solana
make-test:
name: make test
runs-on: ubuntu-latest
# Anchor Docker image: https://www.anchor-lang.com/docs/verifiable-builds#images
container: backpackapp/build:v0.29.0
steps:
- uses: actions/checkout@v4
- name: Set default Rust toolchain
run: rustup default stable
working-directory: ./solana
- name: make test
run: make test
working-directory: ./solana