MOBILE-4110 ci: Use test build

main
Noel De Martin 2022-07-05 09:35:17 +02:00
parent 185b9fc9c6
commit 7de3698e7e
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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