use mise action with cache true (#1207) #5973
Workflow file for this run
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: GoReleaser check | |
| on: | |
| push: | |
| workflow_dispatch: | |
| env: | |
| GOPRIVATE: "github.com/sourcegraph/*" | |
| PRIVATE_TOKEN: "${{ secrets.PRIVATE_SG_ACCESS_TOKEN }}" | |
| jobs: | |
| goreleaser: | |
| name: check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up mise | |
| uses: jdx/mise-action@v2 | |
| with: | |
| cache: true | |
| - name: Enable pulling Go modules from private sourcegraph/sourcegraph | |
| run: git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/" | |
| - name: Check GoReleaser config | |
| uses: goreleaser/goreleaser-action@v5 | |
| with: | |
| version: latest | |
| args: check |