Skip to content

Update module name, upgrade versions, and add CI #6

Update module name, upgrade versions, and add CI

Update module name, upgrade versions, and add CI #6

Workflow file for this run

name: lint
permissions:
contents: read
pull-requests: read
on:
push:
branches: [main, master]
pull_request:
branches: '**'
merge_group:
types: [checks_requested]
jobs:
golangci:
strategy:
fail-fast: false
name: lint
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
check-latest: true
- name: golangci-lint
uses: golangci/golangci-lint-action@4696ba8babb6127d732c3c6dde519db15edab9ea
with:
skip-save-cache: true
govulncheck:
strategy:
fail-fast: false
name: govulncheck
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- id: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-file: './go.mod'
check-latest: true
go-package: ./...
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
check-latest: true
cache: false
- name: install actionlint
run: go install github.com/rhysd/actionlint/cmd/actionlint@latest
- name: actionlint
run: |
echo "::add-matcher::.github/actionlint-matcher.json"
actionlint -color
# This job is here as a github status check -- it allows us to move
# the merge dependency from being on all the jobs to this single
# one.
lint_mergeable:
runs-on: ubuntu-latest
steps:
- run: true
needs:
- golangci
- govulncheck
- actionlint