mirror of
https://github.com/datarhei/core.git
synced 2025-09-27 04:16:25 +08:00
Upgrade actions, go version
This commit is contained in:
8
.github/workflows/go-tests.yml
vendored
8
.github/workflows/go-tests.yml
vendored
@@ -6,16 +6,16 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.19"
|
go-version: "1.22"
|
||||||
- name: Run coverage
|
- name: Run coverage
|
||||||
run: go test -coverprofile=coverage.out -covermode=atomic -v ./...
|
run: go test -coverprofile=coverage.out -covermode=atomic -v ./...
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v2
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
files: coverage.out
|
files: coverage.out
|
||||||
|
Reference in New Issue
Block a user