File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ name : " Merge to main"
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ jobs :
7
+ analyze :
8
+ name : Analyze
9
+ runs-on : ubuntu-latest
10
+ permissions :
11
+ actions : read
12
+ contents : read
13
+ security-events : write
14
+ strategy :
15
+ fail-fast : false
16
+ matrix :
17
+ language : [ 'go' ]
18
+ steps :
19
+ - name : Checkout repository
20
+ uses : actions/checkout@v4
21
+ - name : Initialize CodeQL
22
+ uses : github/codeql-action/init@v2
23
+ with :
24
+ languages : ${{ matrix.language }}
25
+ - name : Autobuild
26
+ uses : github/codeql-action/autobuild@v2
27
+ - name : Perform CodeQL Analysis
28
+ uses : github/codeql-action/analyze@v2
29
+ test :
30
+ name : Test
31
+ runs-on : ubuntu-latest
32
+ strategy :
33
+ matrix :
34
+ go-version : [ '1.19', '1.20', '1.21.x' ]
35
+ steps :
36
+ - name : Checkout repository
37
+ uses : actions/checkout@v4
38
+ - name : Setup Go ${{ matrix.go-version }}
39
+ uses : actions/setup-go@v4
40
+ with :
41
+ go-version : ${{ matrix.go-version }}
42
+ - name : Run tests
43
+ run : make test
You can’t perform that action at this time.
0 commit comments