chore: pin examples/goethereum to rcpx v0.1.0 and remove local replace #3
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: ci | |
| on: | |
| pull_request: | |
| push: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: gofmt + test + vet | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| # Keep the build deterministic: fail if commands would modify go.mod/go.sum. | |
| env: | |
| GOFLAGS: -mod=readonly | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: gofmt check | |
| run: | | |
| bad=$(gofmt -l $(git ls-files '*.go')) | |
| if [ -n "$bad" ]; then | |
| echo "gofmt needed on:" | |
| echo "$bad" | |
| exit 1 | |
| fi | |
| - name: go test | |
| run: go test ./... -count=1 | |
| - name: go vet | |
| run: go vet ./... |