mirror of
https://github.com/eosswedenorg/thalos
synced 2026-11-15 06:36:44 +01:00
chore(ci): normalize lint workflow matrix
This commit is contained in:
parent
7bb3aba097
commit
b9a77b45a7
1 changed files with 6 additions and 4 deletions
10
.github/workflows/lint.yml
vendored
10
.github/workflows/lint.yml
vendored
|
|
@ -12,19 +12,21 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
module: [".", "api"]
|
||||
module:
|
||||
- ["main", "."]
|
||||
- ["api", "api"]
|
||||
runs-on: ubuntu-latest
|
||||
name: golangci-lint (${{ matrix.module }})
|
||||
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 }}/go.mod
|
||||
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 }}
|
||||
working-directory: ${{ matrix.module[1] }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue