-
Notifications
You must be signed in to change notification settings - Fork 143
53 lines (46 loc) · 1.12 KB
/
test.yaml
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
52
53
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.14", "1.15"]
fail-fast: false
name: Go ${{ matrix.go }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/.cache
**/node_modules
key: ${{ runner.os }}-amd64-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-amd64-go-
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '12'
- name: Run Go tests
run: go test -v -race . ./pkg/sd
- name: Install frontend deps
working-directory: ./web-client
run: npm install
- name: Build frontend
working-directory: ./web-client
run: npm run build
- name: Run frontend tests
working-directory: ./web-client
run: npm run test