Update actions/setup-python action to v6 #618
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: Golang CI | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| paths-ignore: | |
| - "docs/**" | |
| tags: | |
| - "*" | |
| pull_request: | |
| paths-ignore: | |
| - "docs/**" | |
| jobs: | |
| go: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Run linter | |
| uses: golangci/golangci-lint-action@v8 | |
| - name: Install dependencies | |
| run: go mod download | |
| - name: Test with Go | |
| run: go test -v ./... -coverprofile cover.out | |
| - name: Upload Go test results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage | |
| path: cover.out | |
| - name: Build | |
| run: go build -v ./... |