Skip to content

Issue templates

Issue templates #147

Workflow file for this run

name: golangci-lint
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
env:
GOCACHE: /home/runner/work/go/pkg/build
GOPATH: /home/runner/work/go
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.0' # The Go version to download (if necessary) and use.
# Install all the dependencies
- name: Install dependencies
run: |
go mod tidy
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.56.2
# Run build of the application
- name: Run build
run: go build .