mirror of
https://github.com/letsencrypt/unbound_exporter
synced 2024-12-17 20:04:58 +00:00
Update github actions (#65)
Test on two latest Go versions. Release with 1.21.4. Update the actions to their latest versions
This commit is contained in:
parent
1de6c94faa
commit
cbed00787a
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -14,11 +14,11 @@ jobs:
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/setup-go@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.20.1'
|
||||
go-version: '1.21.4'
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
|
10
.github/workflows/test.yaml
vendored
10
.github/workflows/test.yaml
vendored
@ -15,16 +15,18 @@ jobs:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.20.x]
|
||||
go-version:
|
||||
- 1.20.x
|
||||
- 1.21.x
|
||||
os: [ubuntu-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
@ -32,7 +34,7 @@ jobs:
|
||||
- name: go coverage
|
||||
run: |
|
||||
go test -mod=readonly -v -race -covermode=atomic -coverprofile=coverage.out ./...
|
||||
- uses: codecov/codecov-action@v2
|
||||
- uses: codecov/codecov-action@v3
|
||||
if: success()
|
||||
with:
|
||||
file: ./coverage.out
|
||||
|
Loading…
Reference in New Issue
Block a user