Skip to content

Commit 2339f99

Browse files
committed
ci: e2e sequential workflows
divided end-to-end into different jobs for upcoming caching of build artifacts Signed-off-by: Damiano Mason <damiano.mason@secomind.com>
1 parent 1d293eb commit 2339f99

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/astarte-end-to-end-test-workflow.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ env:
2424
otp_version: "26.1"
2525

2626
jobs:
27-
end-to-end-test:
28-
name: End-to-end Test
27+
end-to-end-docker-init:
28+
name: Docker Initialization
2929
runs-on: ubuntu-22.04
3030
steps:
3131
- uses: actions/checkout@v2
@@ -35,6 +35,11 @@ jobs:
3535
run: docker compose build --parallel
3636
- name: Start all Astarte services
3737
run: docker compose up -d
38+
end-to-end-astarte-init:
39+
name: Astarte Initialization
40+
runs-on: ubuntu-22.04
41+
needs: end-to-end-docker-init
42+
steps:
3843
- name: Wait for Astarte to come up
3944
run: |
4045
wget https://github.com/astarte-platform/wait-for-astarte-docker-compose/releases/download/v1.1.0/wait-for-astarte-docker-compose_1.1.0_linux_amd64.tar.gz
@@ -68,6 +73,11 @@ jobs:
6873
run: |
6974
JWT=$(./astartectl utils gen-jwt appengine channels -k test_private.pem)
7075
echo "E2E_JWT=$JWT" >> $GITHUB_ENV
76+
end-to-end-build:
77+
name: Build End-to-End
78+
runs-on: ubuntu-22.04
79+
needs: end-to-end-astarte-init
80+
steps:
7181
- uses: actions/cache@v4
7282
with:
7383
path: tools/astarte_e2e/deps
@@ -85,6 +95,11 @@ jobs:
8595
run: |
8696
mix deps.get
8797
mix compile --warnings-as-errors --force
98+
end-to-end-test:
99+
name: End-to-end Test
100+
runs-on: ubuntu-22.04
101+
needs: end-to-end-build
102+
steps:
88103
- name: Run Astarte E2E
89104
working-directory: tools/astarte_e2e
90105
env:

0 commit comments

Comments
 (0)