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