Add 'list' and 'update' configmaps/secrets to workspace SA role #219
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.18.4 | |
- | |
name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- | |
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 |