mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-06-27 22:09:40 +02:00
.github/workflows: update to actions/setup-go@v4
This commit is contained in:
parent
3e9a5ddc3e
commit
b37663f12c
1 changed files with 6 additions and 7 deletions
13
.github/workflows/tests.yml
vendored
13
.github/workflows/tests.yml
vendored
|
|
@ -15,8 +15,8 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
go-version:
|
go-version:
|
||||||
# support the two most recent major go versions
|
# support the two most recent major go versions
|
||||||
- 1.x
|
- stable
|
||||||
- 1.18.x
|
- oldstable
|
||||||
platform: [ubuntu-latest]
|
platform: [ubuntu-latest]
|
||||||
include:
|
include:
|
||||||
# minimum go version that works. This is not necessarily supported in
|
# minimum go version that works. This is not necessarily supported in
|
||||||
|
|
@ -27,11 +27,11 @@ jobs:
|
||||||
|
|
||||||
# include windows, but only with the latest Go version, since there
|
# include windows, but only with the latest Go version, since there
|
||||||
# is very little in the library that is platform specific
|
# is very little in the library that is platform specific
|
||||||
- go-version: 1.x
|
- go-version: stable
|
||||||
platform: windows-latest
|
platform: windows-latest
|
||||||
|
|
||||||
# only update test coverage stats with most recent go version on linux
|
# only update test coverage stats with most recent go version on linux
|
||||||
- go-version: 1.x
|
- go-version: stable
|
||||||
platform: ubuntu-latest
|
platform: ubuntu-latest
|
||||||
update-coverage: true
|
update-coverage: true
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
|
|
@ -39,13 +39,12 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
cache: true
|
|
||||||
|
|
||||||
- name: Run go test
|
- name: Run go test
|
||||||
run: go test -v -race -coverprofile coverage.txt -covermode atomic ./...
|
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
if: ${{ matrix.update-coverage }}
|
if: ${{ matrix.update-coverage }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue