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
|
||||
|
||||
env:
|
||||
latest_go: "1.23.x"
|
||||
latest_go: "1.24.x"
|
||||
GO111MODULE: on
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
go:
|
||||
- 1.23.x
|
||||
- 1.22.x
|
||||
runs-on: ubuntu-latest
|
||||
name: Go ${{ matrix.go }}
|
||||
include:
|
||||
- job_name: Linux
|
||||
go: 1.24.x
|
||||
os: ubuntu-latest
|
||||
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:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
|
@ -46,7 +58,7 @@ jobs:
|
|||
|
||||
- name: Run local Tests
|
||||
run: |
|
||||
go test ./...
|
||||
go test -cover ${{matrix.test_opts}} ./...
|
||||
|
||||
- name: Check changelog files with calens
|
||||
run: |
|
||||
|
@ -55,6 +67,7 @@ jobs:
|
|||
|
||||
echo "check changelog files"
|
||||
calens
|
||||
if: matrix.check_changelog
|
||||
|
||||
lint:
|
||||
name: lint
|
||||
|
@ -76,7 +89,7 @@ jobs:
|
|||
uses: golangci/golangci-lint-action@v6
|
||||
with:
|
||||
# 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
|
||||
|
||||
# only run golangci-lint for pull requests, otherwise ALL hints get
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue