-
-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixup actions and use newer base images
Signed-off-by: Ethan Dye <[email protected]>
- Loading branch information
Showing
5 changed files
with
30 additions
and
21 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 |
---|---|---|
|
@@ -48,7 +48,9 @@ jobs: | |
platform: [rpi4, amd64] | ||
include: | ||
- platform: rpi4 | ||
docker_platform: "--platform linux/arm64/v8" | ||
docker_platform: "linux/arm64" | ||
- platform: amd64 | ||
docker_platform: "linux/amd64" | ||
|
||
steps: | ||
- name: Checkout repository | ||
|
@@ -65,6 +67,7 @@ jobs: | |
uses: docker/[email protected] | ||
with: | ||
driver-opts: network=host | ||
platforms: ${{ matrix.docker_platform }} | ||
- name: Build Docker image | ||
uses: docker/[email protected] | ||
with: | ||
|
@@ -77,7 +80,7 @@ jobs: | |
push: true | ||
- name: BATS tests on ${{ matrix.platform }} platform | ||
run: | | ||
docker run ${{ matrix.docker_platform }} --rm --name "openhabian-${{ matrix.platform }}" -d localhost:5000/openhabian/${{ matrix.platform }}-openhabian | ||
docker run --platform ${{ matrix.docker_platform }} --rm --name "openhabian-${{ matrix.platform }}" -d localhost:5000/openhabian/${{ matrix.platform }}-openhabian | ||
docker exec -i "openhabian-${{ matrix.platform }}" bash -c 'bats --tap --recursive --filter "development-." .' | ||
docker exec -i "openhabian-${{ matrix.platform }}" bash -c 'bats --tap --recursive --filter "unit-." .' | ||
docker exec -i "openhabian-${{ matrix.platform }}" bash -c 'bats --tap --recursive --filter "installation-." .' | ||
|
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 |
---|---|---|
|
@@ -39,27 +39,30 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
platform: [rpi3-64-zulujdk21, amd64-openjdk17, rpi3-openjdk17, rpi3-64-openjdk17] | ||
platform: [rpi5-openjdk17, rpi3-openjdk17, amd64-openjdk17, rpi3-bellsoft21] | ||
include: | ||
- platform: rpi3-64-zulujdk21 | ||
dockerfile: ./tests/Dockerfile.rpi3-64-installation | ||
|
||
- platform: rpi5-openjdk17 | ||
dockerfile: ./tests/Dockerfile.rpi5-installation | ||
qemu_platform: arm64 | ||
java_opt: "Zulu21-64" | ||
docker_platform: "--platform linux/arm64/v8" | ||
- platform: amd64-openjdk17 | ||
dockerfile: ./tests/Dockerfile.amd64-installation | ||
qemu_platform: "" | ||
java_opt: "17" | ||
docker_platform: "linux/arm64/v8" | ||
- platform: rpi3-openjdk17 | ||
dockerfile: ./tests/Dockerfile.rpi3-installation | ||
qemu_platform: arm | ||
java_opt: "17" | ||
docker_platform: "--platform linux/arm/v7" | ||
- platform: rpi3-64-openjdk17 | ||
dockerfile: ./tests/Dockerfile.rpi3-64-installation | ||
qemu_platform: arm64 | ||
docker_platform: "linux/arm/v7" | ||
- platform: amd64-openjdk17 | ||
dockerfile: ./tests/Dockerfile.amd64-installation | ||
qemu_platform: "" | ||
java_opt: "17" | ||
docker_platform: "--platform linux/arm64/v8" | ||
docker_platform: "linux/amd64" | ||
- platform: rpi3-bellsoft21 | ||
dockerfile: ./tests/Dockerfile.rpi3-installation | ||
qemu_platform: arm | ||
java_opt: "BellSoft21" | ||
docker_platform: "linux/arm/v7" | ||
continue-on-error: true # Experimental currently | ||
|
||
steps: | ||
- name: Checkout repository | ||
|
@@ -78,6 +81,7 @@ jobs: | |
uses: docker/[email protected] | ||
with: | ||
driver-opts: network=host | ||
platforms: ${{ matrix.docker_platform }} | ||
- name: Build Docker image | ||
uses: docker/[email protected] | ||
with: | ||
|
@@ -90,6 +94,6 @@ jobs: | |
push: true | ||
- name: openHABian installation test with ${{ matrix.platform }} | ||
run: | | ||
docker run ${{ matrix.docker_platform }} --privileged --rm --name "openhabian-${{ matrix.platform }}" -d localhost:5000/openhabian/${{ matrix.platform }} | ||
docker run --platform ${{ matrix.docker_platform }} --privileged --rm --name "openhabian-${{ matrix.platform }}" -d localhost:5000/openhabian/${{ matrix.platform }} | ||
docker exec -i "openhabian-${{ matrix.platform }}" bash -c './build.bash local-test && /boot/first-boot.bash' | ||
shell: bash |
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
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
3 changes: 1 addition & 2 deletions
3
tests/Dockerfile.rpi3-64-installation → tests/Dockerfile.rpi5-installation
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