-
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
11 changed files
with
438 additions
and
479 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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: e2e-test | ||
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: 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: Load the controller-manager image into Kind | ||
run: | | ||
kind load docker-image tests.com/coralogix-operator:v0.0.1 --name chart-testing | ||
- name: Install CRDs | ||
run: make install | ||
|
||
- 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: Running e2e Tests | ||
env: | ||
CORALOGIX_REGION: ${{ secrets.CORALOGIX_REGION }} | ||
CORALOGIX_API_KEY: ${{ secrets.CORALOGIX_API_KEY }} | ||
run: | | ||
make test-e2e |
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.