Skip to content

Commit ebe5ecc

Browse files
committed
move initializer to e2e workflow
Signed-off-by: Eddy Babetto <eddy.babetto@secomind.com>
1 parent a8a87c2 commit ebe5ecc

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/astarte-build-workflow.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
runs-on: ubuntu-22.04
1515
steps:
1616
- uses: actions/checkout@v2
17-
- name: Initialize docker compose files
18-
run: docker run -v $(pwd)/compose:/compose astarte/docker-compose-initializer
1917
- name: Setup Docker Buildx
2018
uses: docker/setup-buildx-action@v3
2119
- name: Build Astarte containers

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ jobs:
3737
runs-on: ubuntu-22.04
3838
steps:
3939
- uses: actions/checkout@v2
40+
- name: Initialize docker compose files
41+
run: docker run -v $(pwd)/compose:/compose astarte/docker-compose-initializer
42+
- uses: erlef/setup-beam@v1.15
43+
with:
44+
otp-version: ${{ env.otp_version }}
45+
elixir-version: ${{ env.elixir_version }}
4046
- name: Start all Astarte services
4147
run: docker compose up -d
4248
- name: Wait for Astarte to come up
@@ -78,7 +84,9 @@ jobs:
7884
E2E_CHECK_REPETITIONS: 5
7985
E2E_MAILER_TO_ADDRESS: mail@example.com
8086
E2E_MAIL_SUBJECT: "Subj: Astarte Notification"
81-
run: mix run --no-halt
87+
run: |
88+
mix deps.get
89+
mix run --no-halt
8290
- name: Check Docker
8391
if: ${{ failure() }}
8492
run: docker compose logs

0 commit comments

Comments
 (0)