File tree Expand file tree Collapse file tree 1 file changed +31
-3
lines changed Expand file tree Collapse file tree 1 file changed +31
-3
lines changed Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
build :
13
- runs-on : windows -latest
13
+ runs-on : ubuntu -latest
14
14
steps :
15
15
- uses : actions/checkout@v2
16
16
17
17
- name : Setup Node.js environment
18
18
19
19
with :
20
- node-version : " 15.1.0 "
20
+ node-version : ' 14.x '
21
21
22
22
- name : Get yarn cache directory path
23
23
id : yarn-cache-dir-path
45
45
run : yarn install --frozen-lockfile
46
46
47
47
- name : Build and test frontend
48
- run : yarn build
48
+ run : yarn build
49
+
50
+ - name : Check for backend
51
+ id : check-for-backend
52
+ run : |
53
+ if [ -f "Magefile.go" ]
54
+ then
55
+ echo "::set-output name=has-backend::true"
56
+ fi
57
+
58
+ - name : Setup Go environment
59
+ if : steps.check-for-backend.outputs.has-backend == 'true'
60
+ uses : actions/setup-go@v2
61
+ with :
62
+ go-version : ' 1.15'
63
+
64
+ - name : Test backend
65
+ if : steps.check-for-backend.outputs.has-backend == 'true'
66
+ uses : magefile/mage-action@v1
67
+ with :
68
+ version : latest
69
+ args : coverage
70
+
71
+ - name : Build backend
72
+ if : steps.check-for-backend.outputs.has-backend == 'true'
73
+ uses : magefile/mage-action@v1
74
+ with :
75
+ version : latest
76
+ args : buildAll
You can’t perform that action at this time.
0 commit comments