-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: make Spread tests use LXD and arm runners
- Loading branch information
1 parent
4cf1397
commit 855d519
Showing
1 changed file
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,15 @@ on: | |
|
||
jobs: | ||
spread-tests: | ||
name: Run Spread tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
runner: | ||
- name: X64 | ||
runs-on: ubuntu-latest | ||
- name: ARM64 | ||
runs-on: [noble, ARM64, large] | ||
name: Run Spread tests | ${{ matrix.runner.name }} | ||
runs-on: ${{ matrix.runner.runs-on }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -38,13 +45,16 @@ jobs: | |
with: | ||
go-version: '>=1.17.0' | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Install LXD | ||
uses: canonical/[email protected] | ||
with: | ||
channel: 5.21/stable | ||
|
||
- name: Prepare Spread suites | ||
id: spread-suites | ||
env: | ||
integration-tests: "tests/spread/integration" | ||
backend: "lxd" | ||
run: | | ||
set -ex | ||
spread_tasks="" | ||
|
@@ -54,7 +64,7 @@ jobs: | |
pkg_tests="${{ env.integration-tests }}/${pkg_name}" | ||
if [ -f "${pkg_tests}/task.yaml" ] && [[ $spread_tasks != *"${pkg_tests}"* ]] | ||
then | ||
spread_tasks="${spread_tasks} ${pkg_tests}" | ||
spread_tasks="${spread_tasks} ${{ env.backend }}:${pkg_tests}" | ||
fi | ||
done | ||
|