File tree Expand file tree Collapse file tree 11 files changed +1839
-282
lines changed Expand file tree Collapse file tree 11 files changed +1839
-282
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
+ permissions :
3
+ contents : write
4
+ pull-requests : read
2
5
on :
3
6
push :
4
7
tags :
8
11
release :
9
12
name : Release
10
13
runs-on : ubuntu-latest
14
+ env :
15
+ ACTIONS_ALLOW_UNSECURE_COMMANDS : true
11
16
steps :
12
- - uses : actions/checkout@master
13
- - name : Set env
14
- run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
15
- - uses : " marvinpinto/action-automatic-releases@latest"
17
+ - name : Check out the repo
18
+ uses : actions/checkout@v4
19
+
20
+ - name : Set up environment
21
+ run : echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
22
+
23
+ - name : Publish GitHub release
24
+ uses : " marvinpinto/action-automatic-releases@v1.2.1"
16
25
with :
17
26
repo_token : " ${{ secrets.GITHUB_TOKEN }}"
18
27
prerelease : false
Original file line number Diff line number Diff line change 1
1
name : Tests
2
- on : push
2
+ permissions :
3
+ contents : read
4
+ pull-requests : read
5
+
6
+ on :
7
+ push :
3
8
4
9
jobs :
5
10
golangci :
6
- name : lint
11
+ name : Linter
7
12
runs-on : ubuntu-latest
8
13
steps :
9
- - uses : actions/setup-go@v3
14
+ - name : Checkout code
15
+ uses : actions/checkout@v4
16
+ - name : Set up Go
17
+ uses : actions/setup-go@v5
10
18
with :
11
- go-version : ' 1.20 '
12
- - uses : actions/checkout@v3
19
+ go-version : ' 1.24 '
20
+ cache : false
13
21
- name : golangci-lint
14
- uses : golangci/golangci-lint-action@v3
22
+ uses : golangci/golangci-lint-action@v6
15
23
with :
16
- version : v1.51.2
17
- args : --timeout=3m
24
+ version : v1.64.6
25
+ args : --timeout=5m
18
26
test :
27
+ name : Test
19
28
runs-on : ubuntu-latest
20
29
steps :
21
- - name : install Go
22
- uses : actions/setup-go@v2
23
- with :
24
- go-version : 1.20.x
25
- - name : checkout code
26
- uses : actions/checkout@v2
27
- - uses : actions/cache@v2
30
+ - name : Checkout code
31
+ uses : actions/checkout@v4
32
+
33
+ - name : Install Go
34
+ uses : actions/setup-go@v5
28
35
with :
29
- path : ~/go/pkg/mod
30
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
31
- restore-keys : |
32
- ${{ runner.os }}-go-
33
- - name : golang tests
36
+ go-version : 1.24.x
37
+
38
+ - name : Golang tests
34
39
env :
35
40
GO111MODULE : on
36
- BCD_ENV : production
37
41
run : |
38
42
go mod download
39
- go test ./...
43
+ go test -p 8 ./...
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ linters:
10
10
- ineffassign
11
11
- typecheck
12
12
- containedctx
13
- - tenv
13
+ - usetesting
14
14
- unused
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ func Test_expandTransformer_Transform(t *testing.T) {
68
68
}
69
69
}()
70
70
for key , value := range tt .envs {
71
- os .Setenv (key , value )
71
+ t .Setenv (key , value )
72
72
}
73
73
74
74
transformer := & expandTransformer {
You can’t perform that action at this time.
0 commit comments