feat: Add methods for Idempotence Identifiers API (#204) #514
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: Build, Lint, and Test | |
env: | |
EXPORT_RESULT: true | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/golangci-lint | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Install devbox | |
uses: jetify-com/[email protected] | |
with: | |
enable-cache: "true" | |
- name: Run golangci-lint | |
run: devbox run -- make lint-go | |
- name: Check YAML linting | |
run: devbox run -- make lint-yaml | |
- name: Check Kubebuilder Annotation linting | |
run: devbox run -- make lint-kubebuilder | |
- name: Prepare coverage report | |
run: devbox run -- make coverage | |
- name: Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
file: ./coverage.out # Replace with the path to your coverage report | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} |