chore: bump Go version to 1.25.8 (and update dependencies)
#284
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: checks | |
| env: | |
| HOMEBREW_NO_ANALYTICS: '1' | |
| STAVEFILE_VERBOSE: '1' | |
| STAVEFILE_DEBUG: '1' | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: checks-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| checks: | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Resolve Permission Issues | |
| run: | | |
| sudo chown -R $(id -u):$(id -g) $GITHUB_WORKSPACE | |
| sudo chown -R $(id -u):$(id -g) /home/linuxbrew/.linuxbrew | |
| git config --global --add safe.directory '*' | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| # If your repo has a go.mod, this will pick the version from it. | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Scan for secrets | |
| uses: trufflesecurity/trufflehog@main | |
| with: | |
| extra_args: --results=verified,unknown | |
| - name: Cache Homebrew downloads | |
| id: brew_dl | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/Homebrew | |
| key: brew-cache-${{ runner.os }}-${{ hashFiles('Brewfile') }} | |
| restore-keys: | | |
| brew-cache-${{ runner.os }}- | |
| - name: Set up Homebrew | |
| uses: Homebrew/actions/setup-homebrew@main | |
| - name: Detect Homebrew prefix | |
| id: brew | |
| run: echo "prefix=$(brew --prefix)" >> "$GITHUB_OUTPUT" | |
| - name: Cache Homebrew installation | |
| id: brew_install | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ${{ steps.brew.outputs.prefix }}/Cellar | |
| ${{ steps.brew.outputs.prefix }}/opt | |
| ${{ steps.brew.outputs.prefix }}/bin | |
| ${{ steps.brew.outputs.prefix }}/sbin | |
| ${{ steps.brew.outputs.prefix }}/lib | |
| ${{ steps.brew.outputs.prefix }}/include | |
| ${{ steps.brew.outputs.prefix }}/share | |
| ${{ steps.brew.outputs.prefix }}/etc | |
| ${{ steps.brew.outputs.prefix }}/var | |
| ${{ steps.brew.outputs.prefix }}/Homebrew/Library/Taps | |
| key: brew-install-${{ runner.os }}-${{ hashFiles('Brewfile') }} | |
| restore-keys: | | |
| brew-install-${{ runner.os }}- | |
| - name: Install Homebrew tools (only if cache miss) | |
| if: steps.brew_install.outputs.cache-hit != 'true' | |
| run: brew bundle --no-upgrade --file=Brewfile | |
| - name: Self-install | |
| run: go run bootstrap.go | |
| - name: Project init | |
| run: stave init | |
| - name: Parallelism check | |
| run: stave debug:parallelism | |
| - name: Run tests | |
| run: stave test:all | |
| - name: Verify no uncommitted changes | |
| run: stave check:gitStateClean |