[chore] : Bump actions/upload-artifact from 7.0.0 to 7.0.1 in the actions group #123
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 Tests | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - 'README.md' | |
| push: | |
| branches: | |
| - 'main' | |
| paths-ignore: | |
| - 'README.md' | |
| permissions: | |
| contents: read | |
| jobs: | |
| go-fmt-and-vet: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup Go | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version: '>=1.21' | |
| cache: true | |
| - name: Go formatting | |
| run: | | |
| files=$(go fmt ./...) | |
| if [ -n "$files" ]; then | |
| echo "The following file(s) do not conform to go fmt:" | |
| echo "$files" | |
| exit 1 | |
| fi | |
| - name: Lint code | |
| uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 | |
| go-test: | |
| needs: go-fmt-and-vet | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup Go | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version: '>=1.21' | |
| cache: true | |
| - name: Run test and generate coverage report | |
| run: | | |
| go test -race ./... -v -coverprofile=coverage.out | |
| - name: Upload Coverage Report | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| path: coverage.out | |
| name: Coverage-report | |
| - name: Display Coverage report | |
| run: go tool cover -func=coverage.out | |
| - name: Build Go | |
| run: go build ./... |