File tree Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Original file line number Diff line number Diff line change 19
19
jobs :
20
20
lint :
21
21
name : Lint
22
+ concurrency :
23
+ group : ${{ github.workflow }}-lint-${{ github.ref }}
24
+ cancel-in-progress : true
22
25
runs-on : ubuntu-latest
23
26
steps :
24
27
- name : Checkout code
25
28
uses : actions/checkout@v4
26
29
- name : Install Go
27
- uses : actions/setup-go@v5
30
+ uses : actions/setup-go@v4
28
31
with :
29
- go-version : 1.22 .x
32
+ go-version : 1.23 .x
30
33
- name : Check Go module tidiness
31
34
shell : bash
32
35
run : |
@@ -48,15 +51,29 @@ jobs:
48
51
name : Test
49
52
strategy :
50
53
matrix :
51
- go-version : [ 1.21 .x, 1.22 .x ]
54
+ go-version : [ 1.22 .x, 1.23 .x ]
52
55
platform : [ ubuntu-latest, macos-latest, windows-latest ]
53
56
runs-on : ${{ matrix.platform }}
54
57
steps :
58
+ - name : Checkout code
59
+ uses : actions/checkout@v4
55
60
- name : Install Go
56
61
uses : actions/setup-go@v5
57
62
with :
58
63
go-version : ${{ matrix.go-version }}
59
- - name : Checkout code
60
- uses : actions/checkout@v4
61
64
- name : Run tests with coverage
62
- run : go test -v -race -coverprofile=coverage -covermode=atomic ./...
65
+ continue-on-error : true
66
+ run : go test -shuffle=on -v -race -coverprofile=coverage -covermode=atomic -json ./... > test-report.json
67
+ env :
68
+ PGPORT : 5432
69
+ PGHOST : localhost
70
+ PGUSER : postgres
71
+ PGPASSWORD : postgres
72
+ PGDATABASE : postgres
73
+ PGSSLMODE : disable
74
+ REDIS_HOST : localhost
75
+ REDIS_PORT : 6379
76
+ - name : Analyze test report
77
+ run : |
78
+ go install github.com/mfridman/tparse@latest
79
+ tparse -all -file=test-report.json
You can’t perform that action at this time.
0 commit comments