Use for int range loop #23
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Check dependencies tidiness | |
| run: go mod tidy -diff | |
| - name: Lint | |
| uses: golangci/golangci-lint-action@v7 | |
| with: | |
| # Require: The version of golangci-lint to use. | |
| version: latest | |
| - name: Test | |
| run: go test -v |