File tree Expand file tree Collapse file tree 1 file changed +14
-35
lines changed
Expand file tree Collapse file tree 1 file changed +14
-35
lines changed Original file line number Diff line number Diff line change 1- name : CI
1+ name : ci
22
33on :
4- pull_request :
5- branches :
6- - " *"
74 push :
8- branches :
9- - master
10- workflow_dispatch :
11-
12- concurrency :
13- group : ${{ github.workflow }}-${{ github.head_ref || github.ref }}
14- cancel-in-progress : true
5+ branches : [ "master" ]
6+ pull_request :
7+ branches : [ "master" ]
158
169jobs :
10+
1711 build :
18- name : Build
1912 runs-on : ubuntu-24.04
2013 steps :
21- - name : Set up Go 1.24
22- uses : actions/setup-go@v5
23- with :
24- go-version : ' 1.24'
25- id : go
14+ - uses : actions/checkout@v4
2615
27- - name : Use Node.js 20.x
28- uses : actions/setup-node@v4
29- with :
30- node-version : ' 20'
31- check-latest : true
16+ - name : Set up Go
17+ uses : actions/setup-go@v5
18+ with :
19+ go-version : ' 1.25'
3220
33- - name : Check out code into the Go module directory
34- uses : actions/checkout@v4
21+ - name : Build
22+ run : go build -v ./...
3523
36- - name : Prepare git
37- env :
38- GITHUB_USER : 1gtm
39- GITHUB_TOKEN : ${{ secrets.LGTM_GITHUB_TOKEN }}
40- run : |
41- set -x
42- git config --global user.name "${GITHUB_USER}"
43- git config --global user.email "${GITHUB_USER}@appscode.com"
44- git config --global \
45- url."https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com".insteadOf \
46- "https://github.com"
24+ - name : Test
25+ run : go test -v ./...
You can’t perform that action at this time.
0 commit comments