mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 15:43:21 +00:00
CI: add Go 1.24 and reduce diff to config used by restic
This commit is contained in:
parent
8ad7cfa60a
commit
2d3e02017b
1 changed files with 21 additions and 8 deletions
29
.github/workflows/tests.yml
vendored
29
.github/workflows/tests.yml
vendored
|
@ -13,18 +13,30 @@ permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
env:
|
env:
|
||||||
latest_go: "1.23.x"
|
latest_go: "1.24.x"
|
||||||
GO111MODULE: on
|
GO111MODULE: on
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go:
|
include:
|
||||||
- 1.23.x
|
- job_name: Linux
|
||||||
- 1.22.x
|
go: 1.24.x
|
||||||
runs-on: ubuntu-latest
|
os: ubuntu-latest
|
||||||
name: Go ${{ matrix.go }}
|
check_changelog: true
|
||||||
|
|
||||||
|
- job_name: Linux (race)
|
||||||
|
go: 1.24.x
|
||||||
|
os: ubuntu-latest
|
||||||
|
test_opts: "-race"
|
||||||
|
|
||||||
|
- job_name: Linux
|
||||||
|
go: 1.23.x
|
||||||
|
os: ubuntu-latest
|
||||||
|
|
||||||
|
name: ${{ matrix.job_name }} Go ${{ matrix.go }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
|
@ -46,7 +58,7 @@ jobs:
|
||||||
|
|
||||||
- name: Run local Tests
|
- name: Run local Tests
|
||||||
run: |
|
run: |
|
||||||
go test ./...
|
go test -cover ${{matrix.test_opts}} ./...
|
||||||
|
|
||||||
- name: Check changelog files with calens
|
- name: Check changelog files with calens
|
||||||
run: |
|
run: |
|
||||||
|
@ -55,6 +67,7 @@ jobs:
|
||||||
|
|
||||||
echo "check changelog files"
|
echo "check changelog files"
|
||||||
calens
|
calens
|
||||||
|
if: matrix.check_changelog
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
name: lint
|
name: lint
|
||||||
|
@ -76,7 +89,7 @@ jobs:
|
||||||
uses: golangci/golangci-lint-action@v6
|
uses: golangci/golangci-lint-action@v6
|
||||||
with:
|
with:
|
||||||
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
||||||
version: v1.63.4
|
version: v1.64.8
|
||||||
args: --verbose --timeout 5m
|
args: --verbose --timeout 5m
|
||||||
|
|
||||||
# only run golangci-lint for pull requests, otherwise ALL hints get
|
# only run golangci-lint for pull requests, otherwise ALL hints get
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue