mirror of
https://github.com/willnorris/imageproxy.git
synced 2025-02-17 23:45:43 -05: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:
|
||||
go-version:
|
||||
# support the two most recent major go versions
|
||||
- 1.x
|
||||
- 1.18.x
|
||||
- stable
|
||||
- oldstable
|
||||
platform: [ubuntu-latest]
|
||||
include:
|
||||
# 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
|
||||
# is very little in the library that is platform specific
|
||||
- go-version: 1.x
|
||||
- go-version: stable
|
||||
platform: windows-latest
|
||||
|
||||
# only update test coverage stats with most recent go version on linux
|
||||
- go-version: 1.x
|
||||
- go-version: stable
|
||||
platform: ubuntu-latest
|
||||
update-coverage: true
|
||||
runs-on: ${{ matrix.platform }}
|
||||
|
@ -39,13 +39,12 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-go@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
cache: true
|
||||
|
||||
- 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
|
||||
if: ${{ matrix.update-coverage }}
|
||||
|
|
Loading…
Add table
Reference in a new issue