Merge pull request #2892 from kubernetes-sigs/dependabot/go_modules/g… #8583
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: Ubuntu Build & Unit Test | |
| on: | |
| pull_request: {} | |
| push: {} | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Go 1.x | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ^1.16 | |
| id: go | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v6 | |
| - name: Build Test | |
| run: | | |
| make | |
| - name: Unit Test | |
| run: go test -race -covermode=atomic -coverprofile=profile.cov ./pkg/... -timeout=30m | |
| - name: Install goveralls | |
| run: go install github.com/mattn/goveralls@latest | |
| - name: Send coverage | |
| env: | |
| COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: goveralls -coverprofile=profile.cov -service=github -ignore=pkg/azurefile/azurefile_interface_mock.go,pkg/azurefile/directvolume_mock.go,pkg/azurefile/directvolume_interface.go,pkg/azurefile/resolver_interface.go |