Skip to content

[WIP - do not merge!!!] Fix something #24

[WIP - do not merge!!!] Fix something

[WIP - do not merge!!!] Fix something #24

Workflow file for this run

---
name: Test
on: # yamllint disable-line rule:truthy
workflow_dispatch:
inputs:
eden_version:
type: string
required: false
default: '' # if not provided: When checking out the repository that triggered a workflow, this defaults to the reference or SHA for that event. Otherwise, uses the default branch.
eve_image:
type: string
eve_artifact_name:
type: string
artifact_run_id:
type: string
workflow_call:
inputs:
eden_version:
type: string
required: false
default: '' # if not provided: When checking out the repository that triggered a workflow, this defaults to the reference or SHA for that event. Otherwise, uses the default branch.
eve_image:
type: string
eve_artifact_name:
type: string
artifact_run_id:
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:

Check failure on line 45 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 45
continue-on-error: true
strategy:
fail-fast: false
matrix:
file_system: ['ext4', 'zfs']
tpm: [true, false]
name: Smoke tests
needs: determine-runner
runs-on: ${{ needs.determine-runner.outputs.runner }}
steps:
uses: actions/checkout@v3
- name: Get code
uses: actions/[email protected]
with:
repository: "lf-edge/eden"
ref: ${{ inputs.eden_version }}
path: "./eden"
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- 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 }}
artifact_run_id: ${{ inputs.artifact_run_id }}
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"
ref: ${{ inputs.eden_version }}
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 }}
artifact_run_id: ${{ inputs.artifact_run_id }}
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"
ref: ${{ inputs.eden_version }}
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 }}
artifact_run_id: ${{ inputs.artifact_run_id }}
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"
ref: ${{ inputs.eden_version }}
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 }}
artifact_run_id: ${{ inputs.artifact_run_id }}
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"
ref: ${{ inputs.eden_version }}
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 }}
artifact_run_id: ${{ inputs.artifact_run_id }}
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"
ref: ${{ inputs.eden_version }}
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 }}
artifact_run_id: ${{ inputs.artifact_run_id }}