-
Notifications
You must be signed in to change notification settings - Fork 23
36 lines (36 loc) · 982 Bytes
/
ci-ui.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
name: Check UI
on:
pull_request:
branches:
- master
paths:
- 'statshouse-ui/**'
- '.github/workflows/ci-ui.yml'
jobs:
ci-ui:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Cache NPM dependencies
uses: actions/cache@v3
id: cache-primes
with:
path: statshouse-ui/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('statshouse-ui/package-lock.json') }}
- name: Install
if: steps.cache-primes.outputs.cache-hit != 'true'
run: NODE_ENV=production npm ci
working-directory: statshouse-ui
- name: Build
run: npm run build
working-directory: statshouse-ui
- name: Test
run: CI=true npm run test
working-directory: statshouse-ui