forked from bcgov/supreme-court-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 963 Bytes
/
app-vue.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
name: Web CI
on:
# PR targeting master is created or new commits are pushed
pull_request:
branches:
- master
types:
- opened
- synchronize
paths:
- "web/**"
# Manual trigger via GH Actions UI
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: ./web
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
working-directory: ${{env.working-directory}}
- run: npm run lint
working-directory: ${{env.working-directory}}
continue-on-error: true
- run: npm run build
working-directory: ${{env.working-directory}}
- run: npm run test --if-present
working-directory: ${{env.working-directory}}