chore(deps): update dependency go to v1.25.1 (#193) #357
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: CI | |
| on: | |
| pull_request: ~ | |
| push: | |
| branches: [main] # so that we build a Go cache that can be re-used in PRs | |
| env: | |
| DEVBOX_VERSION: 0.14.0 | |
| permissions: | |
| contents: read | |
| jobs: | |
| linters: | |
| name: Linters | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Restore go vendors | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 #v4.3.0 | |
| with: | |
| path: | | |
| ~/go/pkg/mod | |
| ~/.cache/go-build | |
| key: go-deps-${{ runner.os }}-${{ hashFiles('go.sum') }} | |
| restore-keys: | | |
| go-deps-${{ runner.os }} | |
| - name: Install devbox | |
| uses: jetify-com/devbox-install-action@a0d2d53632934ae004f878c840055956d9f741b0 #v0.14.0 | |
| with: | |
| enable-cache: 'true' | |
| devbox-version: ${{ env.DEVBOX_VERSION }} | |
| - name: Run golangci-lint | |
| run: make lint | |
| tests: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Restore go vendors | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 #4.3.0 | |
| with: | |
| path: | | |
| ~/go/pkg/mod | |
| ~/.cache/go-build | |
| key: go-deps-${{ runner.os }}-${{ hashFiles('go.sum') }} | |
| restore-keys: | | |
| go-deps-${{ runner.os }} | |
| - name: Install devbox | |
| uses: jetify-com/devbox-install-action@a0d2d53632934ae004f878c840055956d9f741b0 #v0.14.0 | |
| with: | |
| enable-cache: 'true' | |
| devbox-version: ${{ env.DEVBOX_VERSION }} | |
| - name: Tests | |
| run: make tests | |
| docs: | |
| name: Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install devbox | |
| uses: jetify-com/devbox-install-action@a0d2d53632934ae004f878c840055956d9f741b0 #v0.14.0 | |
| with: | |
| enable-cache: 'true' | |
| devbox-version: ${{ env.DEVBOX_VERSION }} | |
| - name: Check for drift in the generated documentation references | |
| run: make cli-reference | |
| shell: bash | |
| - name: Build documentation | |
| run: make docs |