caddy: bump to caddy 2.8.1 and set directive order #373
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.21 | |
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@v4 | |
- uses: actions/setup-go@v5 | |
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@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1 |