-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 930 Bytes
/
frontend.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
name: Frontend Tests
on:
pull_request:
paths: [frontend/**, token-dispenser/**]
push:
branches: [main]
paths: [frontend/**, token-dispenser/**]
jobs:
test:
runs-on: ubuntu-latest
container:
image: jetprotocol/builder:rust-1.68.0-node-18.15.0-solana-1.14.17-anchor-0.27.0-1
env:
ENDPOINT: http://localhost:8899
env:
PROGRAM_ID: WabZqXyytFA2XeXswf9DdQkQuSZuRiEgKdDmq7c5Mnp
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v3
- name: setup os dependencies
run: apt-get update && apt-get install -y jq
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: frontend/package-lock.json
- name: Install deps
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test:ci