Skip to content

Commit ea8d6be

Browse files
author
Joonas Bergius
committed
chore(ci): Set .golangci.yml config path to root of the repository
Signed-off-by: Joonas Bergius <[email protected]>
1 parent 73b05b3 commit ea8d6be

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

.github/workflows/component-go.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
with:
4343
version: ${{ env.GOLANGCI_VERSION }}
4444
working-directory: ./component
45+
args: --config=${{ github.workspace }}/.golangci.yml
4546
- uses: taiki-e/install-action@86c23eed46c17b80677df6d8151545ce3e236c61 # v2.50.7
4647
with:
4748
tool: ${{ format('wasm-tools@{0}', env.WASM_TOOLS_VERSION) }}
@@ -102,6 +103,7 @@ jobs:
102103
with:
103104
version: ${{ env.GOLANGCI_VERSION }}
104105
working-directory: "./examples/component/${{ matrix.example }}"
106+
args: --config=${{ github.workspace }}/.golangci.yml
105107
- uses: taiki-e/install-action@86c23eed46c17b80677df6d8151545ce3e236c61 # v2.50.7
106108
with:
107109
tool: ${{ format('wash@{0},wasm-tools@{1}', env.WASH_VERSION, env.WASM_TOOLS_VERSION) }}

.github/workflows/provider-go.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@ jobs:
5656
with:
5757
version: ${{ env.GOLANGCI_VERSION }}
5858
working-directory: ./provider
59+
args: --config=${{ github.workspace }}/.golangci.yml

.github/workflows/templates-go.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
with:
5858
version: ${{ env.GOLANGCI_VERSION }}
5959
working-directory: "${{ runner.temp }}/sample-provider"
60+
args: --config=${{ github.workspace }}/.golangci.yml
6061
- name: Go Test
6162
run: go test -v ./...
6263
working-directory: "${{ runner.temp }}/sample-provider"
@@ -98,6 +99,7 @@ jobs:
9899
with:
99100
version: ${{ env.GOLANGCI_VERSION }}
100101
working-directory: "${{ runner.temp }}/sample-component"
102+
args: --config=${{ github.workspace }}/.golangci.yml
101103
- name: Go Test
102104
run: go test -v ./...
103105
working-directory: "${{ runner.temp }}/sample-component"

.github/workflows/wasmbus-go.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
with:
3535
version: ${{ env.GOLANGCI_VERSION }}
3636
working-directory: x/wasmbus
37+
args: --config=${{ github.workspace }}/.golangci.yml
3738

3839
- name: Go generate
3940
working-directory: x/wasmbus
@@ -99,6 +100,7 @@ jobs:
99100
with:
100101
version: ${{ env.GOLANGCI_VERSION }}
101102
working-directory: "./examples/wasmbus/${{ matrix.example }}"
103+
args: --config=${{ github.workspace }}/.golangci.yml
102104
- uses: taiki-e/install-action@86c23eed46c17b80677df6d8151545ce3e236c61 # v2.50.7
103105
with:
104106
tool: ${{ format('wash-cli@{0}', env.WASH_VERSION) }}

0 commit comments

Comments
 (0)