Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:

- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
cache: true
cache-dependency-path: go.sum
go-version-file: go.mod

- run: go version
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/test-e2e-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ permissions: {}

env:
HELM_CHART_PATH: charts/lifecycle-controller
KIND_VERSION: v0.32.0

jobs:
test-e2e-helm:
Expand All @@ -32,6 +33,8 @@ jobs:

- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
cache: true
cache-dependency-path: go.sum
go-version-file: go.mod

- run: go version
Expand All @@ -47,11 +50,11 @@ jobs:

- run: helm version

- name: Install latest kind release
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Set up kind
uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0
with:
install_only: true
version: ${{ env.KIND_VERSION }}

- name: Run Helm E2E tests
run: |
Expand Down
31 changes: 26 additions & 5 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,28 @@ on:
- 'test/e2e/**'
- 'test/utils/**'
- '.github/workflows/test-e2e.yml'
push:
branches:
- main
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
- 'internal/**'
- 'cmd/**'
- 'api/**'
- 'Dockerfile'
- 'Makefile'
- 'config/**'
- 'test/e2e/**'
- 'test/utils/**'
- '.github/workflows/test-e2e.yml'

permissions: {}

env:
KIND_VERSION: v0.32.0

jobs:
test-e2e:
permissions:
Expand All @@ -35,15 +54,17 @@ jobs:

- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
cache: true
cache-dependency-path: go.sum
go-version-file: go.mod

- run: go version

- name: Install latest kind release
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Set up kind
uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0
with:
install_only: true
version: ${{ env.KIND_VERSION }}

- name: Verify kind installation
run: kind version
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/test-helm-unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,19 @@ on:
- 'charts/**'
- 'Makefile'
- '.github/workflows/test-helm-unittest.yml'
push:
branches:
- main
paths:
- 'charts/**'
- 'Makefile'
- '.github/workflows/test-helm-unittest.yml'

permissions: {}

env:
HELM_CHART_PATH: charts/lifecycle-controller
HELM_UNITTEST_VERSION: v1.1.1

jobs:
helm-unittest:
Expand All @@ -39,7 +47,11 @@ jobs:
- run: helm version

- name: Install helm-unittest plugin
run: helm plugin install https://github.com/helm-unittest/helm-unittest --verify=false
run: |
if [ ! -d "$(helm env HELM_PLUGINS)/helm-unittest" ]; then
helm plugin install https://github.com/helm-unittest/helm-unittest \
--version "$HELM_UNITTEST_VERSION" --verify=false
fi

- name: Run Helm unit tests
run: make helm-unittest HELM_CHART_PATH=${{ env.HELM_CHART_PATH }}
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ on:
- 'go.mod'
- 'go.sum'
- '.github/workflows/test.yml'
push:
branches:
- main
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
- 'Makefile'
- '.github/workflows/test.yml'

permissions: {}

Expand All @@ -27,6 +36,8 @@ jobs:

- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
cache: true
cache-dependency-path: go.sum
go-version-file: go.mod

- run: go version
Expand Down