mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 15:43:21 +00:00
Merge pull request #228 from MichaelEischer/update-ci
Update CI configuration and verify changelog entries
This commit is contained in:
commit
30ec84fcb7
2 changed files with 13 additions and 4 deletions
15
.github/workflows/tests.yml
vendored
15
.github/workflows/tests.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue