Unit tests for rollout #6873
Workflow file for this run
This file contains hidden or 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: CI | |
on: | |
schedule: | |
- cron: '0 5 * * *' | |
pull_request: | |
push: | |
branches: | |
- 'release/*' | |
env: | |
GOARCH: amd64 | |
CGO_ENABLED: 0 | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
- | |
name: Set up chart-testing | |
uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0 | |
- | |
name: Run chart-testing (lint) | |
run: ct lint --all --validate-maintainers=false charts/ | |
- | |
name: helm-unittest | |
run: | | |
helm plugin install https://github.com/helm-unittest/helm-unittest.git | |
helm unittest ./charts/fleet | |
- | |
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5 | |
with: | |
go-version-file: 'go.mod' | |
check-latest: true | |
- | |
name: unit-test | |
run: go test -shuffle=on $(go list ./... | grep -v -e /e2e -e /integrationtests -e /benchmarks) | |
integration-tests-group1: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
- | |
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5 | |
with: | |
go-version-file: 'go.mod' | |
check-latest: true | |
- | |
name: Install Ginkgo CLI | |
run: go install github.com/onsi/ginkgo/v2/ginkgo | |
- | |
name: integration-tests-group1 | |
env: | |
SETUP_ENVTEST_VER: v0.0.0-20250218120612-6f6111124902 | |
ENVTEST_K8S_VERSION: 1.32 | |
run: ./.github/scripts/run-integration-tests-group1.sh | |
integration-tests-group2: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
- | |
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5 | |
with: | |
go-version-file: 'go.mod' | |
check-latest: true | |
- | |
name: Install Ginkgo CLI | |
run: go install github.com/onsi/ginkgo/v2/ginkgo | |
- | |
name: integration-tests-group2 | |
env: | |
SETUP_ENVTEST_VER: v0.0.0-20250218120612-6f6111124902 | |
ENVTEST_K8S_VERSION: 1.32 | |
run: ./.github/scripts/run-integration-tests-group2.sh |