Update make-release.sh #27
This file contains 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: Code Coverage Report | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
coverage-report: | |
name: Check Code Coverage | |
runs-on: ubuntu-20.04 | |
steps: | |
- | |
name: Set up Go 1.x | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.10 | |
- | |
name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- | |
name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- | |
name: Cache go modules | |
id: cache-mod | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- | |
name: Download dependencies | |
run: go mod download | |
if: steps.cache-mod.outputs.cache-hit != 'true' | |
- | |
name: Run Go Tests | |
run: | | |
python -m pip install --upgrade pip yq | |
go install golang.org/x/tools/cmd/goimports@latest | |
go install github.com/onsi/ginkgo/v2/[email protected] | |
make update_devworkspace_crds test | |
- | |
name: Build Codecov report | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./cover.out,./controller.cover.out |