File tree 2 files changed +33
-0
lines changed
2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,22 @@ jobs:
10
10
steps :
11
11
- name : Checkout
12
12
uses : actions/checkout@v2
13
+
13
14
- name : Set up Go 1.18
14
15
uses : actions/setup-go@v2
15
16
with :
16
17
go-version : 1.18
18
+
19
+ - name : " Cache go deps"
20
+ uses : actions/cache@v3
21
+ with :
22
+ path : |
23
+ ~/.cache/go-build
24
+ ~/go/pkg/mod
25
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
26
+ restore-keys : |
27
+ ${{ runner.os }}-go-
28
+
17
29
- name : Run tests
18
30
run : make test
19
31
22
34
steps :
23
35
- name : Checkout
24
36
uses : actions/checkout@v2
37
+
25
38
- name : golangci-lint
26
39
uses : golangci/golangci-lint-action@v2
27
40
with :
@@ -33,19 +46,35 @@ jobs:
33
46
steps :
34
47
- name : Checkout
35
48
uses : actions/checkout@v2
49
+
36
50
- name : Set up Node 16
37
51
uses : actions/setup-node@v2
38
52
with :
39
53
node-version : " 16"
54
+
55
+ - name : Get yarn cache directory path
56
+ id : yarn-cache-dir-path
57
+ run : echo "::set-output name=dir::$(yarn cache dir)"
58
+
59
+ - name : " Cache deps"
60
+ uses : actions/cache@v3
61
+ with :
62
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
63
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
64
+ restore-keys : |
65
+ ${{ runner.os }}-yarn-
66
+
40
67
- name : Install dependencies
41
68
working-directory : front
42
69
run : yarn install
70
+
43
71
- name : Run linters
44
72
uses : wearerequired/lint-action@v2
45
73
with :
46
74
eslint : true
47
75
eslint_dir : front/src
48
76
eslint_args : " --ext .js,.vue,.ts"
77
+
49
78
- name : Check the frontend compiles
50
79
working-directory : front
51
80
run : yarn build
55
84
steps :
56
85
- name : Checkout
57
86
uses : actions/checkout@v2
87
+
58
88
- name : Setup buf
59
89
90
+
60
91
- name : Lint proto
61
92
run : make lint-proto
Original file line number Diff line number Diff line change 1
1
[ ![ tests] ( https://github.com/C4T-BuT-S4D/FastAD/actions/workflows/tests.yml/badge.svg?branch=master )] ( https://github.com/C4T-BuT-S4D/FastAD/actions/workflows/tests.yml )
2
+ [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/c4t-but-s4d/fastad )] ( https://goreportcard.com/report/github.com/c4t-but-s4d/fastad )
3
+ [ ![ GitHub license] ( https://badgen.net/github/license/C4T-BuT-S4D/FastAD )] ( https://github.com/C4T-BuT-S4D/FastAD/blob/master/LICENSE )
2
4
3
5
# FastAD
4
6
You can’t perform that action at this time.
0 commit comments