-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (41 loc) · 1.1 KB
/
lint-build-test.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
44
45
46
47
48
name: Lint, build, test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container:
# TODO: change to docker image from marinade registry when available
image: docker.io/ochaloup/solana-test-validator:1.14.18-2
options: --user root
timeout-minutes: 15
strategy:
fail-fast: true
matrix:
node-version: [16]
steps:
- name: Link AVM, solana .config, check versions
run: |
ln -s /root/.avm $HOME/
mkdir -p $HOME/.config
ln -s /root/.config/solana $HOME/.config/
avm use 0.28.0
anchor --version
solana --version
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Lint, build and test
timeout-minutes: 5
run: |
pnpm install
pnpm lint
pnpm build
pnpm test
env:
CI: true