Skip to content

Merge pull request #15 from rebelopsio/fix/daily-explain-turns #52

Merge pull request #15 from rebelopsio/fix/daily-explain-turns

Merge pull request #15 from rebelopsio/fix/daily-explain-turns #52

Workflow file for this run

name: lint
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
# pull-requests: read # only needed if we enable only-new-issues
concurrency:
group: lint-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
# The lint action manages its own cache; disable Go's to avoid
# double-caching and the warnings that come with it.
cache: false
- uses: golangci/golangci-lint-action@v9
with:
version: v2.12
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
# pre-commit caches its own hook environments; Go's separate
# build cache doesn't compose usefully with that.
cache: false
- uses: actions/setup-python@v6
with:
python-version: "3.12"
# The goimports hook in .pre-commit-config.yaml is language: system,
# so the binary must be on PATH. Contributors get this from their
# local Go install; CI needs an explicit install step.
- name: install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
- uses: pre-commit/action@v3.0.1