Skip to content

Commit ea05e26

Browse files
committed
Fix CI: use workspace with cloned deps, upgrade to golangci-lint-action v7
1 parent f30c7e1 commit ea05e26

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,34 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414

15+
- name: Checkout dependencies
16+
run: |
17+
git clone --depth=1 https://github.com/GrayCodeAI/eyrie.git ../eyrie
18+
git clone --depth=1 https://github.com/GrayCodeAI/tok.git ../tok
19+
git clone --depth=1 https://github.com/GrayCodeAI/yaad.git ../yaad
20+
git clone --depth=1 https://github.com/GrayCodeAI/inspect.git ../inspect
21+
git clone --depth=1 https://github.com/GrayCodeAI/sight.git ../sight
22+
1523
- name: Set up Go
1624
uses: actions/setup-go@v5
1725
with:
1826
go-version: '1.26.1'
1927

2028
- name: Download dependencies
21-
run: go mod download
29+
run: |
30+
cp go.work.ci go.work 2>/dev/null || cat > go.work << 'EOF'
31+
go 1.26.1
32+
use .
33+
replace (
34+
github.com/hawk/eyrie => ../eyrie
35+
github.com/GrayCodeAI/eyrie => ../eyrie
36+
github.com/GrayCodeAI/tok => ../tok
37+
github.com/GrayCodeAI/yaad => ../yaad
38+
github.com/GrayCodeAI/inspect => ../inspect
39+
github.com/GrayCodeAI/sight => ../sight
40+
)
41+
EOF
42+
go mod download
2243
2344
- name: Run tests
2445
run: go test -v -race -coverprofile=coverage.out ./...
@@ -45,7 +66,7 @@ jobs:
4566
go-version: '1.26.1'
4667

4768
- name: golangci-lint
48-
uses: golangci/golangci-lint-action@v6
69+
uses: golangci/golangci-lint-action@v7
4970
with:
5071
version: v2.1.0
5172
args: --timeout 5m

0 commit comments

Comments
 (0)