Skip to content

Add linting to project #3

Add linting to project

Add linting to project #3

Workflow file for this run

name: golangci-lint
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
checks: write
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.22'
cache: false
- name: lint go post-processor
uses: golangci/golangci-lint-action@v3
with:
version: v1.56
args: post-processors/go/main.go
- name: lint csharp post-processor
uses: golangci/golangci-lint-action@v3
with:
version: v1.56
args: post-processors/csharp/main.go
- name: lint schema tooling
uses: golangci/golangci-lint-action@v3
with:
version: v1.56
args: schemas/main.go
# Optional: golangci-lint command line arguments.
#
# Note: By default, the `.golangci.yml` file should be at the root of the repository.
# The location of the configuration file can be changed by using `--config=`
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0