Skip to content

Commit

Permalink
ci(docs): fix go-version-file path (#3773)
Browse files Browse the repository at this point in the history
This is a quick fix to get master’s CI back to green. 

It should work even though I noticed while digging in that the `docs`
folder’s Makefile has two rules, each calling different go dependencies
with their own `go.mod` files requiring different go versions.
It might be wise to refactor this and consolidate everything into a
single `go.mod` and probably even moving it to the `docs` folder?
  • Loading branch information
aeddi authored Feb 18, 2025
1 parent 21ec808 commit de78e5b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/docs-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
- name: Set up Go (docs builder)
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: misc/devdeps/go.mod

- name: Install dependencies
- name: Install dependencies (docs builder)
working-directory: misc/devdeps
run: go mod download

- name: Build docs
Expand All @@ -30,5 +31,14 @@ jobs:
- name: Check diff
run: git diff --exit-code || (echo "Some docs files are not formatted, please run 'make build'." && exit 1)

- name: Set up Go (docs linter)
uses: actions/setup-go@v5
with:
go-version-file: misc/docs-linter/go.mod

- name: Install dependencies (docs linter)
working-directory: misc/docs-linter
run: go mod download

- name: Run linter
run: make -C docs/ lint

0 comments on commit de78e5b

Please sign in to comment.