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 11name : Release
2+ permissions :
3+ contents : write
4+ pull-requests : read
25on :
36 push :
47 tags :
811 release :
912 name : Release
1013 runs-on : ubuntu-latest
14+ env :
15+ ACTIONS_ALLOW_UNSECURE_COMMANDS : true
1116 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/[email protected] " 1625 with :
1726 repo_token : " ${{ secrets.GITHUB_TOKEN }}"
1827 prerelease : false
Original file line number Diff line number Diff line change 11name : Tests
2- on : push
2+ permissions :
3+ contents : read
4+ pull-requests : read
5+
6+ on :
7+ push :
38
49jobs :
510 golangci :
6- name : lint
11+ name : Linter
712 runs-on : ubuntu-latest
813 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
1018 with :
11- go-version : ' 1.20 '
12- - uses : actions/checkout@v3
19+ go-version : ' 1.24 '
20+ cache : false
1321 - name : golangci-lint
14- uses : golangci/golangci-lint-action@v3
22+ uses : golangci/golangci-lint-action@v6
1523 with :
16- version : v1.51.2
17- args : --timeout=3m
24+ version : v1.64.6
25+ args : --timeout=5m
1826 test :
27+ name : Test
1928 runs-on : ubuntu-latest
2029 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
2835 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
3439 env :
3540 GO111MODULE : on
36- BCD_ENV : production
3741 run : |
3842 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:
1010 - ineffassign
1111 - typecheck
1212 - containedctx
13- - tenv
13+ - usetesting
1414 - unused
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ func Test_expandTransformer_Transform(t *testing.T) {
6868 }
6969 }()
7070 for key , value := range tt .envs {
71- os .Setenv (key , value )
71+ t .Setenv (key , value )
7272 }
7373
7474 transformer := & expandTransformer {
You can’t perform that action at this time.
0 commit comments