feat: Native sleep mode config #3964
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: Lint | |
on: | |
pull_request: | |
branches: | |
- main | |
- v* | |
paths: | |
- "**.go" | |
- ".github/workflows/lint.yaml" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: ./go.mod | |
cache: false | |
- name: Generate Embedded Helm Chart | |
run: | | |
go generate ./... | |
- name: Verify schema changes | |
run: | | |
VALUES_SHA=$(cat chart/values.yaml | sha256sum) | |
VALUES_SCHEMA_SHA=$(cat chart/values.schema.json | sha256sum) | |
go run hack/schema/main.go | |
VALUES_SHA_AFTER=$(cat chart/values.yaml | sha256sum) | |
VALUES_SCHEMA_SHA_AFTER=$(cat chart/values.schema.json | sha256sum) | |
# if there are changes, tell developer to run script | |
if [ "$VALUES_SHA" != "$VALUES_SHA_AFTER" ] || [ "$VALUES_SCHEMA_SHA" != "$VALUES_SCHEMA_SHA_AFTER" ]; then | |
echo "Seems like you forgot to run 'go run hack/schema/main.go' before committing your changes!" | |
exit 1 | |
fi | |
- name: Install golangci-lint | |
run: go install github.com/golangci/golangci-lint/cmd/[email protected] | |
- name: Build custom golangci-lint | |
run: golangci-lint custom | |
- name: Run golangci-lint | |
run: ./custom-gcl run |