Skip to content

Switch to new workflows #17

Switch to new workflows

Switch to new workflows #17

Workflow file for this run

---
name: Test
on:
workflow_dispatch:
inputs:
eve_image:
type: string
workflow_call:
inputs:
eve_image:
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 }}
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 }}
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:

Check failure on line 78 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 78
- name: Get code
uses: actions/[email protected]
uses: actions/checkout@v3
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 }}
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-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 }}
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 }}