Skip to content

Commit

Permalink
Add support for eden_version input in test workflow
Browse files Browse the repository at this point in the history
When the workflow is triggered from the outside, action/checkout
defaults to checking out the latest master which is not always desired.
For better compatibility with older EVE release the user should be able
to specify the version of eden to be used in the test workflow. If no
version is specified, the workflow should resert to the default behavior.

Signed-off-by: Paul Gaiduk <paulg@zededa.com>
  • Loading branch information
europaul committed Feb 7, 2024
1 parent 28d635c commit 335ef53
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ name: Test
on:
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:
Expand Down Expand Up @@ -49,6 +53,7 @@ jobs:
uses: actions/checkout@v3.5.3
with:
repository: "lf-edge/eden"
ref: ${{ inputs.eden_version }}
path: "./eden"
- name: Run Smoke tests
uses: ./eden/.github/actions/run-eden-test
Expand All @@ -69,6 +74,7 @@ jobs:
uses: actions/checkout@v3.5.3
with:
repository: "lf-edge/eden"
ref: ${{ inputs.eden_version }}
path: "./eden"
- name: Run Networking tests
uses: ./eden/.github/actions/run-eden-test
Expand All @@ -93,6 +99,7 @@ jobs:
uses: actions/checkout@v3.5.3
with:
repository: "lf-edge/eden"
ref: ${{ inputs.eden_version }}
path: "./eden"
- name: Run Storage tests
uses: ./eden/.github/actions/run-eden-test
Expand All @@ -113,6 +120,7 @@ jobs:
uses: actions/checkout@v3.5.3
with:
repository: "lf-edge/eden"
ref: ${{ inputs.eden_version }}
path: "./eden"
- name: Run LPC LOC tests
uses: ./eden/.github/actions/run-eden-test
Expand All @@ -137,6 +145,7 @@ jobs:
uses: actions/checkout@v3.5.3
with:
repository: "lf-edge/eden"
ref: ${{ inputs.eden_version }}
path: "./eden"
- name: Run EVE upgrade tests
uses: ./eden/.github/actions/run-eden-test
Expand All @@ -157,6 +166,7 @@ jobs:
uses: actions/checkout@v3.5.3
with:
repository: "lf-edge/eden"
ref: ${{ inputs.eden_version }}
path: "./eden"
- name: Run User apps upgrade tests
uses: ./eden/.github/actions/run-eden-test
Expand Down

0 comments on commit 335ef53

Please sign in to comment.