-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement lightweight fixture-based tests to ensure CI platform flexibility.
- Loading branch information
Max Rantil
committed
Nov 9, 2023
1 parent
74bfd27
commit b16908b
Showing
1 changed file
with
29 additions
and
0 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,29 @@ | ||
name: E2E Fixture Test | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
"${GITHUB_WORKSPACE}/hack/e2e/ensure_go.sh" | ||
"${GITHUB_WORKSPACE}/hack/e2e/ensure_kubectl.sh" | ||
"${GITHUB_WORKSPACE}/hack/e2e/ensure_cmctl.sh" | ||
- name: Build BMO e2e Docker Image | ||
run: | | ||
export IMG=quay.io/metal3-io/baremetal-operator:e2e | ||
make docker | ||
- name: Set Up Environment and Run BMO e2e Tests | ||
run: | | ||
export E2E_CONF_FILE=${GITHUB_WORKSPACE}/test/e2e/config/fixture.yaml | ||
export USE_EXISTING_CLUSTER="false" | ||
make test-e2e |