mirror of
https://github.com/kjanat/articulate-parser.git
synced 2026-01-16 13:42:10 +01:00
Updates CI to latest major actions (checkout v5, setup-go v6, upload-artifact v5, CodeQL v4) for security and compatibility. Uses stable major tag for autofix action. Updates Docker images to Go 1.25 and Alpine 3.22 to leverage newer toolchain and patched bases. Updates open-pull-requests-limit to 2 in dependabot.yml and upgrade CodeQL action to v4
26 lines
607 B
YAML
26 lines
607 B
YAML
name: autofix.ci
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [ "master" ]
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
autofix:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
# goimports works like gofmt, but also fixes imports.
|
|
# see https://pkg.go.dev/golang.org/x/tools/cmd/goimports
|
|
- run: go install golang.org/x/tools/cmd/goimports@latest
|
|
- run: goimports -w .
|
|
# of course we can also do just this instead:
|
|
# - run: gofmt -w .
|
|
|
|
- uses: autofix-ci/action@v1
|