@marcel91200 / caddy Mirror · read-only / commits / d2a2311b
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 12, 03:15 UTC

ci: fix Go matrix (#6846)

Co-authored-by: Matt Holt <mholt@users.noreply.github.com>

Kévin Dunglas committed Mar 7, 2025 at 18:40 UTC d2a2311bfd513d7e5f6d17858e655ed81fd8c1ef
4 files changed +19 -3
.github/workflows/ci.yml
+7 -3
@@ -12,6 +12,10 @@ on:
12 - master
13 - 2.*
14
15 +env:
16 + # https://github.com/actions/setup-go/issues/491
17 + GOTOOLCHAIN: local
18 +
19 jobs:
20 test:
21 strategy:
@@ -95,7 +99,7 @@ jobs:
99 env:
100 CGO_ENABLED: 0
101 run: |
98 - go build -tags nobadger -trimpath -ldflags="-w -s" -v
102 + go build -tags nobadger,nomysql,nopgx -trimpath -ldflags="-w -s" -v
103
104 - name: Smoke test Caddy
105 working-directory: ./cmd/caddy
@@ -118,7 +122,7 @@ jobs:
122 # continue-on-error: true
123 run: |
124 # (go test -v -coverprofile=cover-profile.out -race ./... 2>&1) > test-results/test-result.out
121 - go test -tags nobadger -v -coverprofile="cover-profile.out" -short -race ./...
125 + go test -tags nobadger,nomysql,nopgx -v -coverprofile="cover-profile.out" -short -race ./...
126 # echo "status=$?" >> $GITHUB_OUTPUT
127
128 # Relevant step if we reinvestigate publishing test/coverage reports
@@ -166,7 +170,7 @@ jobs:
170 retries=3
171 exit_code=0
172 while ((retries > 0)); do
169 - CGO_ENABLED=0 go test -p 1 -tags nobadger -v ./...
173 + CGO_ENABLED=0 go test -p 1 -tags nobadger,nomysql,nopgx -v ./...
174 exit_code=$?
175 if ((exit_code == 0)); then
176 break
.github/workflows/cross-build.yml
+4
@@ -10,6 +10,10 @@ on:
10 - master
11 - 2.*
12
13 +env:
14 + # https://github.com/actions/setup-go/issues/491
15 + GOTOOLCHAIN: local
16 +
17 jobs:
18 build:
19 strategy:
.github/workflows/lint.yml
+4
@@ -13,6 +13,10 @@ on:
13 permissions:
14 contents: read
15
16 +env:
17 + # https://github.com/actions/setup-go/issues/491
18 + GOTOOLCHAIN: local
19 +
20 jobs:
21 # From https://github.com/golangci/golangci-lint-action
22 golangci:
.github/workflows/release.yml
+4
@@ -5,6 +5,10 @@ on:
5 tags:
6 - 'v*.*.*'
7
8 +env:
9 + # https://github.com/actions/setup-go/issues/491
10 + GOTOOLCHAIN: local
11 +
12 jobs:
13 release:
14 name: Release