File tree Expand file tree Collapse file tree 2 files changed +18
-25
lines changed
Expand file tree Collapse file tree 2 files changed +18
-25
lines changed Original file line number Diff line number Diff line change 88 name : Build
99 runs-on : ubuntu-latest
1010 steps :
11+ - name : Check out code into the Go module directory
12+ uses : actions/checkout@v3
1113
1214 - name : Set up Go
13- uses : actions/setup-go@v1
15+ uses : actions/setup-go@v4
1416 with :
15- go-version : 1.19
17+ go-version : ' 1.19'
18+ check-latest : true
1619 id : go
1720
18- - name : Check out code into the Go module directory
19- uses : actions/checkout@v2
20-
21- - name : Get dependencies
22- run : go mod download
23-
2421 - name : Run tests
2522 run : GODEBUG=x509sha1=1 go test -v ./...
2623
@@ -34,12 +31,11 @@ jobs:
3431 name : Lint
3532 runs-on : ubuntu-latest
3633 steps :
37-
3834 - name : Check out code into the Go module directory
39- uses : actions/checkout@v2
35+ uses : actions/checkout@v3
4036
4137 - name : Run golangci-lint
42- uses : golangci/golangci-lint-action@v2
38+ uses : golangci/golangci-lint-action@v3
4339
4440 with :
4541 # Exclude deprecated PEM functions from the linter until
@@ -50,19 +46,16 @@ jobs:
5046 name : Build Windows
5147 runs-on : windows-latest
5248 steps :
49+ - name : Check out code into the Go module directory
50+ uses : actions/checkout@v3
5351
5452 - name : Set up Go
55- uses : actions/setup-go@v1
53+ uses : actions/setup-go@v4
5654 with :
57- go-version : 1.19
55+ go-version : ' 1.19'
56+ check-latest : true
5857 id : go
5958
60- - name : Check out code into the Go module directory
61- uses : actions/checkout@v2
62-
63- - name : Get dependencies
64- run : go mod download
65-
6659 - name : Run tests
6760 run : |
6861 set GODEBUG=x509sha1=1
Original file line number Diff line number Diff line change @@ -20,16 +20,16 @@ jobs:
2020 runs-on : ${{ matrix.target.platform }}
2121 steps :
2222 - name : Set up toolchain
23- uses : actions/setup-go@v2
23+ uses : actions/setup-go@v4
2424 with :
2525 go-version : ${{ matrix.version }}
2626 id : go
2727 - name : Check out code
28- uses : actions/checkout@v2
28+ uses : actions/checkout@v3
2929 - name : Build binary
3030 run : go build -o certstrap .
3131 - name : Upload artifact
32- uses : actions/upload-artifact@v2
32+ uses : actions/upload-artifact@v3
3333 with :
3434 name : certstrap-${{ matrix.target.os }}-${{ matrix.target.arch }}
3535 path : certstrap
4141 outputs :
4242 upload_url : ${{ steps.create_release.outputs.upload_url }}
4343 steps :
44- - uses : actions/checkout@v2
44+ - uses : actions/checkout@v3
4545 - name : Create release
4646 id : create_release
4747 uses : actions/create-release@v1
6767 - { os: 'linux', arch: 'arm64' }
6868 - { os: 'windows', arch: 'amd64' }
6969 steps :
70- - uses : actions/checkout@v2
70+ - uses : actions/checkout@v3
7171 - name : Download artifact
72- uses : actions/download-artifact@v2
72+ uses : actions/download-artifact@v3
7373 with :
7474 name : certstrap-${{ matrix.target.os }}-${{ matrix.target.arch }}
7575 path : dist
You can’t perform that action at this time.
0 commit comments