Merge pull request #228 from MichaelEischer/update-ci

Update CI configuration and verify changelog entries
This commit is contained in:
Michael Eischer 2023-05-05 23:05:22 +02:00 committed by GitHub
commit 30ec84fcb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View file

@ -9,7 +9,7 @@ on:
pull_request:
env:
latest_go: "1.19.x"
latest_go: "1.20.x"
GO111MODULE: on
jobs:
@ -20,6 +20,7 @@ jobs:
- 1.17.x
- 1.18.x
- 1.19.x
- 1.20.x
runs-on: ubuntu-latest
name: Go ${{ matrix.go }}
@ -49,6 +50,14 @@ jobs:
run: |
go test ./...
- name: Check changelog files with calens
run: |
echo "install calens"
go install github.com/restic/calens@latest
echo "check changelog files"
calens
lint:
name: lint
runs-on: ubuntu-latest
@ -65,10 +74,10 @@ jobs:
uses: golangci/golangci-lint-action@v3
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.49
version: v1.51
# Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true
args: --verbose --timeout 5m
args: --verbose --timeout 10m
# only run golangci-lint for pull requests, otherwise ALL hints get
# reported. We need to slowly address all issues until we can enable

View file

@ -1,4 +1,4 @@
Feature: Log to stdout using the `--log -` option
Enhancement: Log to stdout using the `--log -` option
Logging to stdout was possible using `--log /dev/stdout`. However,
when the rest server is run as a different user, for example, using