Skip to content

Test

Test #20

Workflow file for this run

---
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
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: Print Artifact
run: |
echo "${{ inputs.eve_artifact_name }}"
shell: bash
- 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 }}