-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1769 from metal3-io-bot/cherry-pick-1728-to-relea…
…se-0.6 [release-0.6] 🌱 E2E: Run as github workflow
- Loading branch information
Showing
5 changed files
with
109 additions
and
7 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,23 @@ | ||
name: Periodic E2E Test | ||
|
||
on: | ||
schedule: | ||
# Run every day at 02:20 UTC (it is recommended to avoid running at the start of the hour) | ||
- cron: '20 2 * * *' | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
periodic-e2e-test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
bmc-protocol: | ||
- redfish | ||
- redfish-virtualmedia | ||
- ipmi | ||
uses: ./.github/workflows/e2e-test.yml | ||
with: | ||
bmc-protocol: ${{ matrix.bmc-protocol }} | ||
permissions: | ||
contents: read |
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,32 @@ | ||
name: E2E Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'main' | ||
- 'release-*' | ||
paths-ignore: | ||
- '**/*.md' | ||
- 'docs/**' | ||
- '.gitignore' | ||
- 'hack/*.sh' | ||
- 'LICENSE' | ||
- 'SECURITY_CONTACTS' | ||
- 'DCO' | ||
- 'OWNERS' | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
e2e-test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
bmc-protocol: | ||
- redfish-virtualmedia | ||
- ipmi | ||
uses: ./.github/workflows/e2e-test.yml | ||
with: | ||
bmc-protocol: ${{ matrix.bmc-protocol }} | ||
permissions: | ||
contents: read |
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,47 @@ | ||
name: E2E Test | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
bmc-protocol: | ||
required: true | ||
type: string | ||
runner: | ||
type: string | ||
default: "ubuntu-latest-4-cores" | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
test: | ||
name: e2e test | ||
runs-on: ${{ inputs.runner }} | ||
|
||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
|
||
- name: Install libvirt | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libvirt-daemon-system qemu-kvm virt-manager | ||
- name: Run BMO e2e Tests | ||
env: | ||
BMC_PROTOCOL: ${{ inputs.bmc-protocol }} | ||
# We need a new shell to pick up the new group. That is why we do the sudo -s -u $USER ... | ||
# Remove the pre-installed go version. We install the exact version we need. | ||
run: | | ||
sudo usermod -a -G libvirt $USER | ||
sudo rm /usr/bin/go | ||
sudo -s -u $USER bash ${{ github.workspace }}/hack/ci-e2e.sh | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
with: | ||
name: artifacts-${{ inputs.bmc-protocol }}.tar.gz | ||
path: test/e2e/_artifacts | ||
if-no-files-found: error | ||
overwrite: false |
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