Test #18
Workflow file for this run
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
--- | |
name: Test | |
on: | |
workflow_dispatch: | |
inputs: | |
eve_image: | |
type: string | |
eve_artifact_name: | |
type: string | |
workflow_call: | |
inputs: | |
eve_image: | |
type: string | |
eve_artifact_name: | |
type: string | |
jobs: | |
determine-runner: | |
name: Determine best available runner | |
runs-on: ubuntu-latest | |
outputs: | |
runner: ${{ steps.fork-check.outputs.runner }} | |
steps: | |
- id: fork-check | |
run: | | |
if [[ "${{ github.event.repository.full_name}}" == "lf-edge/eve" ]] || [[ "${{ github.event.repository.full_name}}" == "lf-edge/eden" ]]; then | |
echo "runner=buildjet-4vcpu-ubuntu-2204" >> "$GITHUB_OUTPUT" | |
else | |
echo "runner=ubuntu-22.04" >> "$GITHUB_OUTPUT" | |
fi | |
smoke: | |
continue-on-error: true | |
strategy: | |
matrix: | |
file_system: ['ext4', 'zfs'] | |
tpm: [true, false] | |
name: Smoke tests | |
needs: determine-runner | |
runs-on: ${{ needs.determine-runner.outputs.runner }} | |
steps: | |
- name: Get code | |
uses: actions/[email protected] | |
with: | |
repository: "lf-edge/eden" | |
path: "./eden" | |
- name: Run Smoke tests | |
uses: ./eden/.github/actions/run-eden-test | |
with: | |
file_system: ${{ matrix.file_system }} | |
tpm_enabled: ${{ matrix.tpm }} | |
suite: "smoke.tests.txt" | |
eve_image: ${{ inputs.eve_image }} | |
eve_artifact_name: ${{ inputs.eve_artifact_name }} | |
networking: | |
name: Networking test suite | |
needs: [smoke, determine-runner] | |
runs-on: ${{ needs.determine-runner.outputs.runner }} | |
steps: | |
- name: Get code | |
uses: actions/[email protected] | |
with: | |
repository: "lf-edge/eden" | |
path: "./eden" | |
- name: Run Networking tests | |
uses: ./eden/.github/actions/run-eden-test | |
with: | |
file_system: "ext4" | |
tpm_enabled: true | |
suite: "networking.tests.txt" | |
eve_image: ${{ inputs.eve_image }} | |
eve_artifact_name: ${{ inputs.eve_artifact_name }} | |
storage: | |
continue-on-error: true | |
strategy: | |
matrix: | |
file_system: ['ext4', 'zfs'] | |
name: Storage test suite | |
needs: [smoke, determine-runner] | |
runs-on: ${{ needs.determine-runner.outputs.runner }} | |
steps: | |
- name: Get code | |
uses: actions/[email protected] | |
with: | |
repository: "lf-edge/eden" | |
path: "./eden" | |
- name: Run Storage tests | |
uses: ./eden/.github/actions/run-eden-test | |
with: | |
file_system: ${{ matrix.file_system }} | |
tpm_enabled: true | |
suite: "storage.tests.txt" | |
eve_image: ${{ inputs.eve_image }} | |
eve_artifact_name: ${{ inputs.eve_artifact_name }} | |
lpc-loc: | |
name: LPC LOC test suite | |
needs: [smoke, determine-runner] | |
runs-on: ${{ needs.determine-runner.outputs.runner }} | |
steps: | |
- name: Get code | |
uses: actions/[email protected] | |
with: | |
repository: "lf-edge/eden" | |
path: "./eden" | |
- name: Run LPC LOC tests | |
uses: ./eden/.github/actions/run-eden-test | |
with: | |
file_system: "ext4" | |
tpm_enabled: true | |
suite: "lpc-loc.tests.txt" | |
eve_image: ${{ inputs.eve_image }} | |
eve_artifact_name: ${{ inputs.eve_artifact_name }} | |
eve-upgrade: | |
continue-on-error: true | |
strategy: | |
matrix: | |
file_system: ['ext4', 'zfs'] | |
name: EVE upgrade test suite | |
needs: [smoke, determine-runner] | |
runs-on: ${{ needs.determine-runner.outputs.runner }} | |
steps: | |
- name: Get code | |
uses: actions/[email protected] | |
with: | |
repository: "lf-edge/eden" | |
path: "./eden" | |
- name: Run EVE upgrade tests | |
uses: ./eden/.github/actions/run-eden-test | |
with: | |
file_system: ${{ matrix.file_system }} | |
tpm_enabled: true | |
suite: "eve-upgrade.tests.txt" | |
eve_image: ${{ inputs.eve_image }} | |
eve_artifact_name: ${{ inputs.eve_artifact_name }} | |
user-apps: | |
name: User apps test suite | |
needs: [smoke, determine-runner] | |
runs-on: ${{ needs.determine-runner.outputs.runner }} | |
steps: | |
- name: Get code | |
uses: actions/[email protected] | |
with: | |
repository: "lf-edge/eden" | |
path: "./eden" | |
- name: Run User apps upgrade tests | |
uses: ./eden/.github/actions/run-eden-test | |
with: | |
file_system: "ext4" | |
tpm_enabled: true | |
suite: "user-apps.tests.txt" | |
eve_image: ${{ inputs.eve_image }} | |
eve_artifact_name: ${{ inputs.eve_artifact_name }} | |