Add hotkey to expand TXT records #127
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] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| env: | |
| # Those values will quiet git hints about changing default branch name | |
| GIT_CONFIG_COUNT: "1" | |
| GIT_CONFIG_KEY_0: init.defaultBranch | |
| GIT_CONFIG_VALUE_0: main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-24.04-arm | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: latest | |
| - name: Check formatting | |
| run: | | |
| unformatted=$(gofmt -l .) | |
| if [ -n "$unformatted" ]; then | |
| echo "Files not formatted:" | |
| echo "$unformatted" | |
| exit 1 | |
| fi | |
| - name: Check modernized code | |
| run: | | |
| go run golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest -fix ./... | |
| if ! git diff --exit-code; then | |
| echo "Code is not modernized. Run the following locally and commit the changes:" | |
| echo " go run golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest -fix ./..." | |
| exit 1 | |
| fi | |
| - name: Test | |
| run: go test ./... |