mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-05-15 15:02:37 +02:00
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.4.0 to 5.5.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](0aaccfd150...d35c59abb0)
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-version: 5.5.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
51 lines
1.5 KiB
YAML
51 lines
1.5 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- "**"
|
|
name: tests
|
|
env:
|
|
GO111MODULE: on
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
go-version:
|
|
# support the two most recent major go versions
|
|
- stable
|
|
- oldstable
|
|
platform: [ubuntu-latest]
|
|
include:
|
|
# minimum go version that works. This is not necessarily supported in
|
|
# any way, and will be bumped up without notice as needed. But it at
|
|
# least lets us know what go version should work.
|
|
- go-version: 1.23
|
|
platform: ubuntu-latest
|
|
|
|
# include windows, but only with the latest Go version, since there
|
|
# is very little in the library that is platform specific
|
|
- go-version: stable
|
|
platform: windows-latest
|
|
|
|
# only update test coverage stats with most recent go version on linux
|
|
- go-version: stable
|
|
platform: ubuntu-latest
|
|
update-coverage: true
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Run go test
|
|
run: go test -v -race -coverprofile coverage.txt -covermode atomic ./...
|
|
|
|
- name: Upload coverage to Codecov
|
|
if: ${{ matrix.update-coverage }}
|
|
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
|