1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-10-15 03:16:45 +02:00
thalos/.github/workflows/lint.yml

32 lines
638 B
YAML

name: Lint
permissions:
contents: read
on:
- push
- pull_request
jobs:
golangci-lint:
strategy:
fail-fast: false
matrix:
module:
- ["main", "."]
- ["api", "api"]
runs-on: ubuntu-latest
name: golangci-lint (${{ matrix.module[0] }})
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: ${{ matrix.module[1] }}/go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.12
working-directory: ${{ matrix.module[1] }}