-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (42 loc) · 967 Bytes
/
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
name: " WEB [CI]"
on:
push:
paths:
- '**/*.js'
- '**/*.json'
- '**/*.vue'
- "web/**"
jobs:
BUILD:
name: BUILD
runs-on: ubuntu-latest
env:
wd: web/
steps:
# Checkout to current workspace
- name: 1 - CHECKOUT
uses: actions/checkout@v2
# Install Golang with specific version
- name: 2 - SETUP GO@1.15
uses: actions/setup-go@v1
with:
go-version: 1.15
# Cache Go modules to make the build faster
- name: 3 - CACHE NODE MODULES
uses: actions/cache@v2
with:
path: |
web/node_modules
key: node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
node-
# Install packages
- name: 3 - NPM INSTALL
run: npm install
working-directory: ${{ env.wd }}
# Build apps
- name: 4 - BUILD
run: npm run build
working-directory: ${{ env.wd }}
env:
CI: ""