From 7de3698e7e625f2a2c8648e2b787d6531114bfbd Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Tue, 5 Jul 2022 09:35:17 +0200 Subject: [PATCH] MOBILE-4110 ci: Use test build --- .github/workflows/acceptance.yml | 4 ++-- .github/workflows/performance.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml index 2f45858cd..2972bbf1d 100644 --- a/.github/workflows/acceptance.yml +++ b/.github/workflows/acceptance.yml @@ -55,9 +55,9 @@ jobs: $GITHUB_WORKSPACE/moodle-docker/bin/moodle-docker-compose pull $GITHUB_WORKSPACE/moodle-docker/bin/moodle-docker-compose up -d $GITHUB_WORKSPACE/moodle-docker/bin/moodle-docker-wait-for-db - - name: Compile & launch production app with Docker + - name: Compile & launch app with Docker run: | - docker build -t moodlehq/moodleapp:behat . + docker build --build-arg build_command="npm run build:test" -t moodlehq/moodleapp:behat . docker run -d --rm --name moodleapp moodlehq/moodleapp:behat docker network connect moodle-docker_default moodleapp --alias moodleapp - name: Init Behat diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 1f9321dbe..b4fe6a50c 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -40,9 +40,9 @@ jobs: $GITHUB_WORKSPACE/moodle-docker/bin/moodle-docker-compose pull $GITHUB_WORKSPACE/moodle-docker/bin/moodle-docker-compose up -d $GITHUB_WORKSPACE/moodle-docker/bin/moodle-docker-wait-for-db - - name: Compile & launch production app with Docker + - name: Compile & launch app with Docker run: | - docker build -t moodlehq/moodleapp:performance . + docker build --build-arg build_command="npm run build:test" -t moodlehq/moodleapp:performance . docker run -d --rm --name moodleapp moodlehq/moodleapp:performance docker network connect moodle-docker_default moodleapp --alias moodleapp - name: Init Behat