fix(ci): GOBIN #9
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: Format | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - "realms/**" | |
| - ".github/workflows/**" | |
| pull_request: | |
| paths: | |
| - "realms/**" | |
| - ".github/workflows/**" | |
| permissions: | |
| contents: read | |
| env: | |
| GO_VERSION: "1.23.x" | |
| GOBIN: ${{ github.workspace }}/bin | |
| jobs: | |
| fmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout this repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| cache: true | |
| - name: Checkout Gno repo | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: gnolang/gno | |
| ref: master | |
| path: gno-repo | |
| - name: Build gno | |
| working-directory: gno-repo | |
| run: | | |
| make install | |
| echo "$GOBIN" >> $GITHUB_PATH | |
| - name: Format | |
| working-directory: realms | |
| run: gno fmt -diff ./... |