-
Notifications
You must be signed in to change notification settings - Fork 34
48 lines (44 loc) · 1.22 KB
/
ci.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: CI
on:
push:
branches:
- main
pull_request:
permissions:
actions: read
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- uses: metadaoproject/setup-anchor@v2
with:
anchor-version: '0.30.1'
solana-cli-version: '1.18.9'
node-version: '20.10.0'
- run: pnpm install --no-frozen-lockfile
- name: Generate new keygen
run: solana-keygen new --no-bip39-passphrase
- name: Set solana target cluster to local
run: solana config set --url http:localhost:8899
- name: Check solana config
run: solana config get
- name: cargo list
run: cargo --list
- uses: nrwl/nx-set-shas@v4
# TODO: Make sure the anchor build runs prettier after the build
- run: pnpm anchor keys sync
- run: pnpm exec nx affected -t lint test build --exclude sdk