Update docs and comments #26
Workflow file for this run
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 Checks | |
on: [push] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
cleanliness: | |
name: Run Cleanliness Checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: './go.mod' | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- run: pip install yamllint==1.33.0 | |
- run: | | |
make manifests | |
( cd test/fakepolicy && make manifests ) | |
make generate | |
make fmt | |
make vet | |
yamllint . | |
git diff --exit-code | |
# A separate job so that it can annotate the code | |
golangci: | |
name: Run golangci-lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: './go.mod' | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.58 | |
# Automatically uses ./.golangci.yml for configuration | |
tests: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: './go.mod' | |
- run: | | |
make test | |
grep -v 'zz_generated.deepcopy.go' raw-cover.out > cover.out | |
- name: Update coverage report | |
uses: ncruces/go-coverage-report@v0 | |
with: | |
coverage-file: cover.out | |
output-dir: ${{ github.ref_name }} | |
report: true | |
chart: false | |
amend: false | |
if: ${{ github.event_name == 'push' }} | |
continue-on-error: true |