Skip to content

Commit

Permalink
Add ref parameter to checkout eden code
Browse files Browse the repository at this point in the history
Following on lf-edge#910 we saw that EVE checks out Eden master
code and not code from tag from yml file and if master fails
tests are failing on EVE, which is undesirable

https://github.com/lf-edge/eve/actions/runs/6613253197/job/17960730583?pr=3516#step:2:474

This commit introduces ref parameter to avoid pulling and building
Eden master.

Signed-off-by: Pavel Abramov <[email protected]>
  • Loading branch information
uncleDecart committed Oct 24, 2023
1 parent e440d62 commit 2f7421a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ on:
inputs:
eve_image:
type: string
ref:
type: string
default: master
workflow_call:
inputs:
eve_image:
type: string
ref:
type: string
default: master

jobs:
determine-runner:
Expand Down Expand Up @@ -40,6 +46,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: "lf-edge/eden"
ref: ${{ inputs.ref }}
path: "./eden"
- name: Run Smoke tests
uses: ./eden/.github/actions/run-eden-test
Expand All @@ -58,6 +65,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: "lf-edge/eden"
ref: ${{ inputs.ref }}
path: "./eden"
- name: Run Networking tests
uses: ./eden/.github/actions/run-eden-test
Expand All @@ -80,6 +88,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: "lf-edge/eden"
ref: ${{ inputs.ref }}
path: "./eden"
- name: Run Storage tests
uses: ./eden/.github/actions/run-eden-test
Expand All @@ -98,6 +107,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: "lf-edge/eden"
ref: ${{ inputs.ref }}
path: "./eden"
- name: Run LPC LOC tests
uses: ./eden/.github/actions/run-eden-test
Expand All @@ -120,6 +130,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: "lf-edge/eden"
ref: ${{ inputs.ref }}
path: "./eden"
- name: Run EVE upgrade tests
uses: ./eden/.github/actions/run-eden-test
Expand All @@ -138,6 +149,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: "lf-edge/eden"
ref: ${{ inputs.ref }}
path: "./eden"
- name: Run User apps upgrade tests
uses: ./eden/.github/actions/run-eden-test
Expand Down

0 comments on commit 2f7421a

Please sign in to comment.