Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for eden_version input in test workflow #954

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/eden_emh_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt install -y golang jq expect
- name: Get eden
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
- name: Create ubuntu server on packet hosting
id: ubuntu
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/eden_gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fs: ["zfs", "ext4"]
steps:
- name: get eden
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
- name: setup go
uses: actions/setup-go@v3
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/eden_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: |
ip a
- name: get eden
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up QEMU
Expand All @@ -40,7 +40,7 @@ jobs:
run: |
ip a
- name: get eden
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up QEMU
Expand Down Expand Up @@ -80,9 +80,9 @@ jobs:
./eden config add setup --devmodel general
./eden --config setup setup
./eden --config setup clean
./eden config delete setup
# try download and build from repo
./eden config delete setup

# try download and build from repo
./eden config add setup
# use stable tag as eve tag and branch may differ
./eden config set setup --key eve.tag --value="8.6.0"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
if: needs.check-secrets.outputs.available == 'true'
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up QEMU
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
arch: arm64
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up QEMU
Expand Down
24 changes: 17 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
name: Test

on:
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:
Expand Down Expand Up @@ -46,9 +50,10 @@ jobs:
runs-on: ${{ needs.determine-runner.outputs.runner }}
steps:
- name: Get code
uses: actions/checkout@v3.5.3
uses: actions/checkout@v4.1.1
with:
repository: "lf-edge/eden"
ref: ${{ inputs.eden_version }}
path: "./eden"
- name: Run Smoke tests
uses: ./eden/.github/actions/run-eden-test
Expand All @@ -66,9 +71,10 @@ jobs:
runs-on: ${{ needs.determine-runner.outputs.runner }}
steps:
- name: Get code
uses: actions/checkout@v3.5.3
uses: actions/checkout@v4.1.1
with:
repository: "lf-edge/eden"
ref: ${{ inputs.eden_version }}
path: "./eden"
- name: Run Networking tests
uses: ./eden/.github/actions/run-eden-test
Expand All @@ -90,9 +96,10 @@ jobs:
runs-on: ${{ needs.determine-runner.outputs.runner }}
steps:
- name: Get code
uses: actions/checkout@v3.5.3
uses: actions/checkout@v4.1.1
with:
repository: "lf-edge/eden"
ref: ${{ inputs.eden_version }}
path: "./eden"
- name: Run Storage tests
uses: ./eden/.github/actions/run-eden-test
Expand All @@ -110,9 +117,10 @@ jobs:
runs-on: ${{ needs.determine-runner.outputs.runner }}
steps:
- name: Get code
uses: actions/checkout@v3.5.3
uses: actions/checkout@v4.1.1
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 @@ -134,9 +142,10 @@ jobs:
runs-on: ${{ needs.determine-runner.outputs.runner }}
steps:
- name: Get code
uses: actions/checkout@v3.5.3
uses: actions/checkout@v4.1.1
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 @@ -154,9 +163,10 @@ jobs:
runs-on: ${{ needs.determine-runner.outputs.runner }}
steps:
- name: Get code
uses: actions/checkout@v3.5.3
uses: actions/checkout@v4.1.1
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
2 changes: 1 addition & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: get eden
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
- name: setup go
uses: actions/setup-go@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/yetus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
path: src
fetch-depth: 0
Expand Down