feat: tx account cleanup extension #578
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: Build & Test | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| paths: | |
| - "**.go" | |
| - "go.mod" | |
| - "go.sum" | |
| push: | |
| branches: | |
| - main | |
| - "release/*" | |
| paths: | |
| - "**.go" | |
| - "go.mod" | |
| - "go.sum" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Run linter | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: 1.24 | |
| - uses: actions/checkout@v6 | |
| - uses: technote-space/get-diff-action@v6 | |
| with: | |
| PATTERNS: | | |
| **/**.go | |
| go.mod | |
| go.sum | |
| - name: Install golangci-lint | |
| run: | | |
| curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.9.0 | |
| if: env.GIT_DIFF | |
| - name: Run linter | |
| run: | | |
| make lint | |
| if: env.GIT_DIFF | |
| - name: Check for differences | |
| run: | | |
| if [[ -n $(git status --porcelain) ]]; then | |
| echo "Linter made changes. Please run 'make lint' locally and commit the changes." | |
| git diff | |
| exit 1 | |
| fi | |
| if: env.GIT_DIFF | |
| test: | |
| name: Run tests | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: 1.24 | |
| - uses: actions/checkout@v6 | |
| - uses: technote-space/get-diff-action@v6 | |
| with: | |
| PATTERNS: | | |
| **/**.go | |
| go.mod | |
| go.sum | |
| - name: build | |
| run: | | |
| make build | |
| if: env.GIT_DIFF | |
| - name: test | |
| run: | | |
| go test ./... -mod=readonly -timeout 12m | |
| if: env.GIT_DIFF |