-
-
Notifications
You must be signed in to change notification settings - Fork 12
38 lines (37 loc) · 934 Bytes
/
web.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: Web
on:
push:
tags:
- v*
branches:
- master
paths:
- 'web/**'
- ".github/workflows/web.yml"
pull_request:
paths:
- 'web/**'
- ".github/workflows/web.yml"
jobs:
build-test-lint:
strategy:
matrix:
node: ['10.x']
runs-on: ubuntu-latest
working_directory: web
steps:
- uses: actions/checkout@v3.6.0
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3.8.2
with:
node-version: ${{ matrix.node }}
- name: Cache Node.js modules
uses: actions/cache@v3.4.0
with:
path: web/node_modules
key: ${{ runner.OS }}-node-${{ matrix.node }}-v1-${{ hashFiles('web/yarn.lock') }}
restore-keys: ${{ runner.OS }}-node-${{ matrix.node }}-v1-
- run: npm install
- run: npm run build
- run: npm run test:CI
- run: npm run lint