Skip to content

feat: OBS-8 - golangci-lint GitHub action workflow #1

feat: OBS-8 - golangci-lint GitHub action workflow

feat: OBS-8 - golangci-lint GitHub action workflow #1

Workflow file for this run

name: golangci-lint
on:
push:
branches:
- "!release"
pull_request:
permissions:
contents: read
jobs:
golangci:
strategy:
matrix:
go: [
"diode-sdk-go",
"diode-server",
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false
- name: golangci-lint ${{ matrix.go }}
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
working-directory: ${{ matrix.go }}
args: --config ../../.github/golangci.yaml --issues-exit-code=0
skip-pkg-cache: true
skip-build-cache: true