File tree 2 files changed +35
-11
lines changed
2 files changed +35
-11
lines changed Original file line number Diff line number Diff line change 5
5
branches : [master, develop]
6
6
pull_request :
7
7
branches : [master]
8
+ workflow_dispatch :
9
+ inputs :
10
+ force_run :
11
+ description : ' Force workflow run'
12
+ required : true
13
+ type : choice
14
+ options : [yes, no]
15
+
16
+ permissions :
17
+ actions : read
18
+ contents : read
19
+ statuses : write
20
+
21
+ concurrency :
22
+ group : ${{ github.workflow }}-${{ github.ref }}
23
+ cancel-in-progress : true
8
24
9
25
jobs :
10
26
Go :
11
27
name : Go
12
28
runs-on : ubuntu-latest
13
29
14
- env :
15
- SRC_DIR : src/github.com/${{ github.repository }}
16
-
17
30
strategy :
18
31
matrix :
19
- go : [ '1.18 .x', '1.19 .x' ]
32
+ go : [ '1.19 .x', '1.20 .x' ]
20
33
21
34
steps :
35
+ - name : Checkout
36
+ uses : actions/checkout@v3
37
+
22
38
- name : Set up Go
23
39
uses : actions/setup-go@v4
24
40
with :
25
41
go-version : ${{ matrix.go }}
26
42
27
- - name : Checkout
28
- uses : actions/checkout@v3
29
- with :
30
- path : ${{env.SRC_DIR}}
31
-
32
43
- name : Download dependencies
33
- working-directory : ${{env.SRC_DIR}}
34
44
run : make deps
35
45
36
46
- name : Run tests
37
- working-directory : ${{env.SRC_DIR}}
38
47
run : make all
39
48
40
49
Perfecto :
58
67
uses : essentialkaos/perfecto-action@v2
59
68
with :
60
69
files : common/jira-reindex-runner.spec
70
+
71
+ Typos :
72
+ name : Typos
73
+ runs-on : ubuntu-latest
74
+
75
+ needs : Go
76
+
77
+ steps :
78
+ - name : Checkout
79
+ uses : actions/checkout@v3
80
+
81
+ - name : Check spelling
82
+ uses : crate-ci/typos@master
Original file line number Diff line number Diff line change
1
+ [files ]
2
+ extend-exclude = [" go.sum" ]
You can’t perform that action at this time.
0 commit comments