Skip to content

add GitHub Actions workflow for tests and linting #1

add GitHub Actions workflow for tests and linting

add GitHub Actions workflow for tests and linting #1

Workflow file for this run

name: golangci-lint
on:
# For now, only lint pull requests, not the main branches.
pull_request:
workflow_dispatch:
permissions:
contents: read
pull-requests: read
concurrency:
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 #v6.0.1
with:
version: v1.59.0
# Show only new issues if it's a pull request.
only-new-issues: true