Fix legacy formatter behaviour for bodies with no comments or decls #3730
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: | |
| push: | |
| branches: [main] | |
| tags: ['v*'] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| - cron: '15 22 * * *' | |
| workflow_dispatch: {} # support manual runs | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: test (go:${{ matrix.go-version.name }}, ${{ matrix.goarch }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| go-version: | |
| - name: latest | |
| version: 1.26.x | |
| - name: previous | |
| version: 1.25.x | |
| goarch: [amd64, 386] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go-version.version }} | |
| - run: make test | |
| env: | |
| GOARCH: ${{ matrix.goarch }} | |
| benchmarks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: 1.26.x | |
| - run: make benchmarks | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: 1.26.x | |
| - run: make generate | |
| - run: make checkgenerate | |
| # Often, lint & gofmt guidelines depend on the Go version. To prevent | |
| # conflicting guidance, run only on the most recent supported version. | |
| # For the same reason, only check generated code on the most recent | |
| # supported version. | |
| - run: make lint |