Skip to content

chore(deps): lock file maintenance #832

chore(deps): lock file maintenance

chore(deps): lock file maintenance #832

Workflow file for this run

name: "Lint PRs"
on:
pull_request:
types:
- edited
- opened
- reopened
- synchronized
jobs:
# This job checks the PR title using
# https://github.com/conventional-changelog/commitlint
# for the conventional commit format at
# https://www.conventionalcommits.org/en/v1.0.0/
# See also /.github/commitlint.config.js for more details
# We only need to check the PR title because it will end up being the
# (default) commit title when doing squash merges with Github.
# See
# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/about-pull-request-merges#merge-message-for-a-squash-merge
# for more info. We have "Default to PR title for squash merge commits" enabled.
commit-lint:
name: "Check PR title"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- run: npm install -g @commitlint/cli @commitlint/config-conventional
- name: "Check PR title"
# Inject as env variable to escape properly
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
commitlint --config .github/commitlint.config.js --edit=<(echo "${TITLE}")
check:
name: "check"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- run: make check
- uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
with:
args: --verbose
verify: false # workaround https://github.com/golangci/golangci-lint-action/issues/1179
- run: make test
- run: make build