Skip to content

Commit 9686c2f

Browse files
authored
Merge pull request #70 from thin-edge/tests-main-release
ci: test on tedge-main image
2 parents 52c4b25 + 0377a9e commit 9686c2f

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

.github/workflows/publish.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@ jobs:
3737

3838
- name: Publish images
3939
run: just publish registry ${{ inputs.VERSION || github.ref_name }}
40+
41+
- name: Publish image (tedge-main branch)
42+
env:
43+
IMAGE: tedge-container-bundle-main
44+
TEDGE_IMAGE: tedge-main
45+
TEDGE_TAG: latest
46+
run: just publish registry ${{ inputs.VERSION || github.ref_name }}

.github/workflows/test.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: echo "Approved"
2424

2525
test:
26-
name: Test ${{ matrix.job.name }}
26+
name: Test ${{ matrix.job.name }} (${{ matrix.build.image }}@${{ matrix.build.tag }})
2727
runs-on: ubuntu-latest
2828
needs: approve
2929
environment:
@@ -34,6 +34,9 @@ jobs:
3434
strategy:
3535
fail-fast: false
3636
matrix:
37+
build:
38+
- { image: tedge, tag: latest }
39+
- { image: tedge-main, tag: latest }
3740
job:
3841
# docker
3942
- { target: tedge-container-bundle, name: "docker v27", image: "docker:27-dind" }
@@ -78,6 +81,9 @@ jobs:
7881
tests/requirements.txt
7982
8083
- name: Install dependencies
84+
env:
85+
TEDGE_IMAGE: ${{ matrix.build.image }}
86+
TEDGE_TAG: ${{ matrix.build.tag }}
8187
run: |
8288
just venv
8389
just build-test
@@ -89,7 +95,7 @@ jobs:
8995
uses: actions/upload-artifact@v4
9096
if: always()
9197
with:
92-
name: reports-${{ matrix.job.name }}
98+
name: reports-${{ matrix.job.name }}-${{ matrix.build.image }}@${{ matrix.build.tag }}
9399
path: output
94100

95101
- name: Send report to commit

justfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
set dotenv-load
22
set export
33

4-
IMAGE := "tedge-container-bundle"
5-
TEDGE_IMAGE := "tedge"
6-
TEDGE_TAG := "1.4.2"
4+
IMAGE := env_var_or_default("IMAGE", "tedge-container-bundle")
5+
TEDGE_IMAGE := env_var_or_default("TEDGE_IMAGE", "tedge")
6+
TEDGE_TAG := env_var_or_default("TEDGE_TAG", "1.4.2")
77

88
REGISTRY := "ghcr.io"
99
REPO_OWNER := "thin-edge"
@@ -81,7 +81,9 @@ lint *ARGS:
8181
# Build test images
8282
build-test: build-test-bundles
8383
echo "Creating test infrastructure image"
84-
[ -d "./test-images/{{TEST_IMAGE}}" ] && docker build --load -t {{TEST_IMAGE}} -f ./test-images/{{TEST_IMAGE}}/Dockerfile . || docker pull "{{TEST_IMAGE}}"
84+
[ -d "./test-images/{{TEST_IMAGE}}" ] && docker build \
85+
--load -t {{TEST_IMAGE}} \
86+
-f ./test-images/{{TEST_IMAGE}}/Dockerfile . || docker pull "{{TEST_IMAGE}}"
8587

8688
build-test-bundles:
8789
echo "Building tedge-container-bundle images"

tests/main/self-update-compat.robot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Library DateTime
44

55
Test Teardown Stop Device
66

7-
Test Tags self-update
7+
# Retry due to a problem with the older tedge-container-bundle images
8+
Test Tags self-update test:retry(3)
89

910

1011
*** Test Cases ***

0 commit comments

Comments
 (0)