fix: upgrade Go version to 1.25 in workflow files (#101) #140
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: "1.25" | |
| - name: Check gofmt | |
| run: | | |
| files=$(gofmt -s -l .) | |
| echo "$files" | |
| test -z "$files" | |
| - run: go vet ./... | |
| - uses: dominikh/staticcheck-action@v1.4.0 | |
| with: | |
| install-go: false | |
| docs-check: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: docs | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| cache: "npm" | |
| cache-dependency-path: docs/package-lock.json | |
| - name: Install docs dependencies | |
| run: npm ci | |
| - name: Lint documentation | |
| run: npm run lint |