|
|
|
@ -16,7 +16,7 @@ jobs:
|
|
|
|
|
with:
|
|
|
|
|
fetch-depth: 0
|
|
|
|
|
- name: Set up Go
|
|
|
|
|
uses: actions/setup-go@v4
|
|
|
|
|
uses: actions/setup-go@v5
|
|
|
|
|
with:
|
|
|
|
|
go-version: 1.20.x
|
|
|
|
|
- uses: dominikh/staticcheck-action@ba605356b4b29a60e87ab9404b712f3461e566dc #v1.3.0
|
|
|
|
@ -41,14 +41,14 @@ jobs:
|
|
|
|
|
with:
|
|
|
|
|
fetch-depth: 0
|
|
|
|
|
- name: Set up Go
|
|
|
|
|
uses: actions/setup-go@v4
|
|
|
|
|
uses: actions/setup-go@v5
|
|
|
|
|
with:
|
|
|
|
|
go-version: 1.20.x
|
|
|
|
|
- name: Run tests
|
|
|
|
|
run: |
|
|
|
|
|
go test -v -coverprofile coverage.out -covermode atomic ./...
|
|
|
|
|
- name: Publish coverage
|
|
|
|
|
uses: codecov/codecov-action@v3
|
|
|
|
|
uses: codecov/codecov-action@v4
|
|
|
|
|
with:
|
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
|
build:
|
|
|
|
@ -60,7 +60,7 @@ jobs:
|
|
|
|
|
with:
|
|
|
|
|
fetch-depth: 0
|
|
|
|
|
- name: Set up Go
|
|
|
|
|
uses: actions/setup-go@v4
|
|
|
|
|
uses: actions/setup-go@v5
|
|
|
|
|
with:
|
|
|
|
|
go-version: 1.20.x
|
|
|
|
|
- name: Build
|
|
|
|
|