-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
156 changed files
with
414 additions
and
502 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,23 +19,30 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build the controller-manager Docker image | ||
env: | ||
IMG: tests.com/coralogix-operator:v0.0.1 | ||
run: | | ||
make docker-build | ||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
- name: Install kuttl | ||
- name: Load the controller-manager image into Kind | ||
run: | | ||
curl -Lo /usr/local/bin/kubectl-kuttl https://github.com/kudobuilder/kuttl/releases/download/v0.12.1/kubectl-kuttl_0.12.1_linux_x86_64 | ||
chmod +x /usr/local/bin/kubectl-kuttl | ||
kind load docker-image tests.com/coralogix-operator:v0.0.1 --name chart-testing | ||
- name: Install CRDs | ||
run: make install | ||
- name: Install Go | ||
uses: actions/setup-go@37335c7bb261b353407cff977110895fa0b4f7d8 | ||
with: | ||
go-version: 1.22.x | ||
- name: Running operator and Tests | ||
- name: Deploy the controller-manager | ||
env: | ||
IMG: tests.com/coralogix-operator:v0.0.1 | ||
CORALOGIX_REGION: ${{ secrets.CORALOGIX_REGION }} | ||
CORALOGIX_API_KEY: ${{ secrets.CORALOGIX_API_KEY }} | ||
run: | | ||
make deploy | ||
- name: Run e2e Tests | ||
env: | ||
CORALOGIX_REGION: ${{ secrets.CORALOGIX_REGION }} | ||
CORALOGIX_API_KEY: ${{ secrets.CORALOGIX_API_KEY }} | ||
run: | | ||
go run main.go & | ||
sleep 30s | ||
make e2e | ||
make e2e-tests |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: integration-tests | ||
on: | ||
schedule: | ||
- cron: 0 0 * * * | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "charts/**" | ||
pull_request: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "charts/**" | ||
jobs: | ||
tests: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
- name: Install kuttl | ||
run: | | ||
curl -Lo /usr/local/bin/kubectl-kuttl https://github.com/kudobuilder/kuttl/releases/download/v0.12.1/kubectl-kuttl_0.12.1_linux_x86_64 | ||
chmod +x /usr/local/bin/kubectl-kuttl | ||
- name: Install CRDs | ||
run: make install | ||
- name: Install Go | ||
uses: actions/setup-go@37335c7bb261b353407cff977110895fa0b4f7d8 | ||
with: | ||
go-version: 1.22.x | ||
- name: Running operator and Tests | ||
env: | ||
CORALOGIX_REGION: ${{ secrets.CORALOGIX_REGION }} | ||
CORALOGIX_API_KEY: ${{ secrets.CORALOGIX_API_KEY }} | ||
run: | | ||
go run main.go & | ||
sleep 30s | ||
make integration-tests |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: unit | ||
name: unit-tests | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
|
@@ -21,7 +21,7 @@ jobs: | |
uses: helm/[email protected] | ||
- name: Install CRDs | ||
run: make install | ||
- run: make test | ||
- run: make unit-tests | ||
- name: Patch Coverage | ||
uses: seriousben/go-patch-cover-action@v1 | ||
with: | ||
|
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
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
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
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
Oops, something went wrong.