Skip to content

Commit 68dbf5f

Browse files
committed
ci: add codecov
1 parent 2bd347d commit 68dbf5f

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/codecov.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 'Codecov'
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
env:
9+
GO_VERSION: '^1.20.4'
10+
11+
jobs:
12+
codecov:
13+
name: 'Codecov'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: 'Checkout'
17+
uses: actions/checkout@v3
18+
- name: 'Setup go ${{ env.GO_VERSION }}'
19+
uses: actions/setup-go@v3
20+
with:
21+
go-version: ${{ env.GO_VERSION }}
22+
- name: 'Test'
23+
run: 'go test -race -coverprofile=coverage.out -covermode=atomic ./...'
24+
- name: 'Upload coverage reports to Codecov'
25+
uses: codecov/codecov-action@v3
26+
env:
27+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/test_and_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
with:
3636
go-version: ${{ env.GO_VERSION }}
3737
- name: 'Release'
38-
run: 'GOPROXY=proxy.golang.org go list -m github.com/its-felix/aws-lambda-go-http-adapter@${{ github.ref_name }}'
38+
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)