Skip to content

Commit f3db402

Browse files
Fix golangci-latest job by downloading config artifact (#1554)
1 parent 7dbcf2b commit f3db402

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/pr_test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,22 @@ jobs:
127127
for dockerFile in Dockerfile*; do docker build -f $dockerFile . ; done
128128
golangci-latest:
129129
name: lint-latest (informational)
130+
needs: [config]
130131
runs-on: ubuntu-latest
131132
continue-on-error: true
132133
steps:
133134
- name: Checkout code
134135
uses: actions/checkout@v5
136+
with:
137+
fetch-depth: 0
138+
- name: Download config artifact
139+
uses: actions/download-artifact@v4
140+
with:
141+
name: config-artifact-${{ github.sha }}
142+
path: pkg/config
143+
- name: Verify embedded config exists
144+
run: |
145+
test -f pkg/config/config.toml || { echo "missing pkg/config/config.toml"; ls -la pkg/config; exit 1; }
135146
- name: Setup Go
136147
uses: actions/setup-go@v6
137148
with:

0 commit comments

Comments
 (0)