-
Notifications
You must be signed in to change notification settings - Fork 25
38 lines (28 loc) · 961 Bytes
/
tests.yaml
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
# From https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs#using-the-nodejs-starter-workflow
name: Node.js and Solana CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
# From https://docs.solana.com/cli/install-solana-cli-tools
- name: Install Solana
run: sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
- name: Add to PATH
run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Run Solana validator (and background it)
run: solana-test-validator &
- name: Install everything
run: npm ci
- name: Check Solana keygen is installed
run: echo $PATH; which solana-keygen
- name: Run tests
run: npm test