Skip to content

Commit c55bddb

Browse files
committed
misc: update actions
1 parent fefbfd2 commit c55bddb

File tree

2 files changed

+12
-18
lines changed

2 files changed

+12
-18
lines changed

.github/workflows/codecov.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,20 @@ on:
55
branches:
66
- main
77

8-
env:
9-
GO_VERSION: '^1.20.4'
10-
118
jobs:
129
codecov:
1310
name: 'Codecov'
1411
runs-on: ubuntu-latest
1512
steps:
1613
- name: 'Checkout'
17-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1815
- name: 'Setup go ${{ env.GO_VERSION }}'
19-
uses: actions/setup-go@v3
16+
uses: actions/setup-go@v5
2017
with:
21-
go-version: ${{ env.GO_VERSION }}
18+
go-version-file: 'go.mod'
2219
- name: 'Test'
2320
run: 'go test -race -coverprofile=coverage.out -covermode=atomic ./...'
2421
- name: 'Upload coverage reports to Codecov'
25-
uses: codecov/codecov-action@v3
22+
uses: codecov/codecov-action@v4
2623
env:
2724
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/test_and_release.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,17 @@ on:
55
tags:
66
- 'v[0-9]+\.[0-9]+\.[0-9]+'
77

8-
env:
9-
GO_VERSION: '^1.20.4'
10-
118
jobs:
129
test:
1310
name: 'Test'
1411
runs-on: ubuntu-latest
1512
steps:
1613
- name: 'Checkout'
17-
uses: actions/checkout@v3
18-
- name: 'Setup go ${{ env.GO_VERSION }}'
19-
uses: actions/setup-go@v3
14+
uses: actions/checkout@v4
15+
- name: 'Setup go'
16+
uses: actions/setup-go@v5
2017
with:
21-
go-version: ${{ env.GO_VERSION }}
18+
go-version-file: 'go.mod'
2219
- name: 'Test'
2320
run: 'go test ./...'
2421

@@ -29,10 +26,10 @@ jobs:
2926
- test
3027
steps:
3128
- name: 'Checkout'
32-
uses: actions/checkout@v3
33-
- name: 'Setup go ${{ env.GO_VERSION }}'
34-
uses: actions/setup-go@v3
29+
uses: actions/checkout@v4
30+
- name: 'Setup go'
31+
uses: actions/setup-go@v5
3532
with:
36-
go-version: ${{ env.GO_VERSION }}
33+
go-version-file: 'go.mod'
3734
- name: 'Release'
3835
run: 'GOPROXY=proxy.golang.org go list -m github.com/its-felix/aws-lambda-go-http-adapter@${{ github.ref_name }}'

0 commit comments

Comments
 (0)