File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,17 +23,20 @@ jobs:
2323 test :
2424 name : Test Go Code
2525 runs-on : ${{ matrix.os }}
26+ permissions :
27+ contents : read
28+ id-token : write
2629 strategy :
2730 matrix :
2831 os : [ubuntu-latest, windows-latest, macos-latest]
2932 steps :
3033 - name : Set up Go
31- uses : actions/setup-go@v4
34+ uses : actions/setup-go@v6
3235 with :
3336 go-version : stable
3437
3538 - name : Check out code into the Go module directory
36- uses : actions/checkout@v3
39+ uses : actions/checkout@v6
3740
3841 - name : Get dependencies
3942 run : go get -v -t -d ./...
4548 run : go test -coverprofile="coverage.txt" -covermode=atomic -v -p 1 .
4649
4750 - name : Upload coverage to Codecov
48- uses : codecov/codecov-action@v3
51+ uses : codecov/codecov-action@v6
52+ with :
53+ files : ./coverage.txt
54+ fail_ci_if_error : true
55+ use_oidc : true
4956
5057 build :
5158 name : Build AtomicGo Package
5764
5865 steps :
5966 - name : Checkout repository
60- uses : actions/checkout@v3
67+ uses : actions/checkout@v6
6168 with :
6269 fetch-depth : 0
6370
6875 wget https://raw.githubusercontent.com/atomicgo/atomicgo/main/templates/readme.md -O .templates/readme.md
6976
7077 - name : Set up Go
71- uses : actions/setup-go@v4
78+ uses : actions/setup-go@v6
7279 with :
7380 go-version : stable
7481
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ name: Go
1313on :
1414 pull_request :
1515
16+ permissions :
17+ contents : read
18+ id-token : write
19+
1620jobs :
1721 test :
1822 name : Test Go code
@@ -22,12 +26,12 @@ jobs:
2226 os : [ubuntu-latest, windows-latest, macos-latest]
2327 steps :
2428 - name : Set up Go
25- uses : actions/setup-go@v4
29+ uses : actions/setup-go@v6
2630 with :
2731 go-version : stable
2832
2933 - name : Check out code into the Go module directory
30- uses : actions/checkout@v3
34+ uses : actions/checkout@v6
3135
3236 - name : Get dependencies
3337 run : go get -v -t -d ./...
3943 run : go test -coverprofile="coverage.txt" -covermode=atomic -v -p 1 .
4044
4145 - name : Upload coverage to Codecov
42- uses : codecov/codecov-action@v1
46+ uses : codecov/codecov-action@v6
47+ with :
48+ files : ./coverage.txt
49+ fail_ci_if_error : true
50+ use_oidc : ${{ github.event.pull_request.head.repo.full_name == github.repository }}
Original file line number Diff line number Diff line change @@ -13,19 +13,19 @@ name: Release
1313on :
1414 push :
1515 tags :
16- - " *"
16+ - " v*.*. *"
1717
1818permissions :
1919 contents : write
2020
2121jobs :
22- release :
23- name : Release pushed tag
22+ build :
2423 runs-on : ubuntu-latest
25-
2624 steps :
25+ - name : Checkout
26+ uses : actions/checkout@v6
2727 - name : Release
28- uses : softprops/action-gh-release@v2
28+ uses : softprops/action-gh-release@v3
2929 with :
3030 token : ${{ secrets.GITHUB_TOKEN }}
3131 generate_release_notes : true
You can’t perform that action at this time.
0 commit comments