-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (49 loc) · 1.26 KB
/
web-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
49
50
51
name: CI
on:
push:
branches:
- master
paths:
- packages/spelunker-web/**
- .github/workflows/web-ci.yml
pull_request:
branches:
- master
paths:
- packages/spelunker-web/**
- .github/workflows/web-ci.yml
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node:
- '16'
- '18'
name: Node ${{ matrix.node }}
env:
API_URI: 'http://localhost:3001/graphql'
DEBUG: 'spelunker*'
PIPELINE_URI: 'http://localhost:3001/pipeline'
DATA_URI: 'http://localhost:3001/data'
MINIMAP_URI: 'http://localhost:3001/minimap'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Cache Node modules
uses: actions/cache@v2
id: cache-node
with:
key: node-${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('./packages/spelunker-web/package-lock.json') }}
path: ~/.npm
- name: Install Node modules
run: npm install
working-directory: ./packages/spelunker-web
- name: Lint
run: npm run lint
working-directory: ./packages/spelunker-web
- name: Build
run: npm run build
working-directory: ./packages/spelunker-web