@marcel91200 / caddy Mirror · read-only / commits / c3a82f53
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 13, 19:15 UTC

ci: Ensure we always check for latest version of Go (#4703)

* ci: Ensure we always check for latest version of Go * Try to force 1.18.1, 1.17.9 * Use includes for the actual go semver * Use `~` for semver here, apparently * Try to make tests still run on 1.18.0 for Mac, for now

Francis Lavoie committed Apr 13, 2022 at 16:03 UTC c3a82f53d558b44603a0b26fc256e6c011a11650
4 files changed +36 -5
.github/workflows/ci.yml
+16 -2
@@ -21,10 +21,23 @@ jobs:
21 os: [ ubuntu-latest, macos-latest, windows-latest ]
22 go: [ '1.17', '1.18' ]
23
24 + include:
25 + # Set the minimum Go patch version for the given Go minor
26 + # Usable via ${{ matrix.GO_SEMVER }}
27 + - go: '1.17'
28 + GO_SEMVER: '~1.17.9'
29 +
30 + - go: '1.18'
31 + GO_SEMVER: '~1.18.1'
32 +
33 + # Go 1.18.1 isn't released yet for Mac as of Apr 13 2022
34 + - go: '1.18'
35 + os: 'macos-latest'
36 + GO_SEMVER: '1.18.0'
37 +
38 # Set some variables per OS, usable via ${{ matrix.VAR }}
39 # CADDY_BIN_PATH: the path to the compiled Caddy binary, for artifact publishing
40 # SUCCESS: the typical value for $? per OS (Windows/pwsh returns 'True')
27 - include:
41 - os: ubuntu-latest
42 CADDY_BIN_PATH: ./cmd/caddy/caddy
43 SUCCESS: 0
@@ -43,7 +56,8 @@ jobs:
56 - name: Install Go
57 uses: actions/setup-go@v3
58 with:
46 - go-version: ${{ matrix.go }}
59 + go-version: ${{ matrix.GO_SEMVER }}
60 + check-latest: true
61
62 - name: Checkout code
63 uses: actions/checkout@v3
.github/workflows/cross-build.yml
+9 -1
@@ -17,13 +17,21 @@ jobs:
17 matrix:
18 goos: ['android', 'linux', 'solaris', 'illumos', 'dragonfly', 'freebsd', 'openbsd', 'plan9', 'windows', 'darwin', 'netbsd']
19 go: [ '1.18' ]
20 +
21 + include:
22 + # Set the minimum Go patch version for the given Go minor
23 + # Usable via ${{ matrix.GO_SEMVER }}
24 + - go: '1.18'
25 + GO_SEMVER: '~1.18.1'
26 +
27 runs-on: ubuntu-latest
28 continue-on-error: true
29 steps:
30 - name: Install Go
31 uses: actions/setup-go@v3
32 with:
26 - go-version: ${{ matrix.go }}
33 + go-version: ${{ matrix.GO_SEMVER }}
34 + check-latest: true
35
36 - name: Print Go version and environment
37 id: vars
.github/workflows/lint.yml
+2 -1
@@ -19,7 +19,8 @@ jobs:
19 - uses: actions/checkout@v3
20 - uses: actions/setup-go@v3
21 with:
22 - go-version: 1.17
22 + go-version: '~1.17.9'
23 + check-latest: true
24
25 - name: golangci-lint
26 uses: golangci/golangci-lint-action@v3
.github/workflows/release.yml
+9 -1
@@ -12,13 +12,21 @@ jobs:
12 matrix:
13 os: [ ubuntu-latest ]
14 go: [ '1.18' ]
15 +
16 + include:
17 + # Set the minimum Go patch version for the given Go minor
18 + # Usable via ${{ matrix.GO_SEMVER }}
19 + - go: '1.17'
20 + GO_SEMVER: '~1.18.1'
21 +
22 runs-on: ${{ matrix.os }}
23
24 steps:
25 - name: Install Go
26 uses: actions/setup-go@v3
27 with:
21 - go-version: ${{ matrix.go }}
28 + go-version: ${{ matrix.GO_SEMVER }}
29 + check-latest: true
30
31 - name: Checkout code
32 uses: actions/checkout@v3