-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor docker-compose commands for integration and unit tests
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,13 +26,13 @@ jobs: | |
|
||
# Runs a single command using the runners shell | ||
- name: Build Docker Images | ||
run: docker-compose -f ./docker-compose-int-test.yml build -m 8g | ||
run: docker compose -f ./docker-compose-int-test.yml build -m 8g | ||
|
||
# Runs a set of commands using the runners shell | ||
- name: Run Integration Tests | ||
run: | | ||
docker-compose -f ./docker-compose-int-test.yml run tester bash -c "sh /root/wait_pennai.sh && npm test" | ||
docker-compose -f ./docker-compose-int-test.yml down | ||
docker compose -f ./docker-compose-int-test.yml run tester bash -c "sh /root/wait_pennai.sh && npm test" | ||
docker compose -f ./docker-compose-int-test.yml down | ||
build_web_app: | ||
name: Unit Tests for Webapp | ||
|
@@ -50,13 +50,13 @@ jobs: | |
# Runs a single command using the runners shell | ||
- name: Build Docker Images | ||
run: | | ||
docker-compose -f ./docker-compose-unit-test.yml build -m 8g | ||
docker compose -f ./docker-compose-unit-test.yml build -m 8g | ||
# Runs a set of commands using the runners shell | ||
- name: Run Unit Tests | ||
run: | | ||
git lfs fetch --all | ||
docker-compose -f ./docker-compose-unit-test.yml up --abort-on-container-exit -V | ||
docker compose -f ./docker-compose-unit-test.yml up --abort-on-container-exit -V | ||
- name: Coveralls | ||
uses: AndreMiras/coveralls-python-action@develop | ||
with: | ||
|
@@ -77,7 +77,7 @@ jobs: | |
- name: Build Docker Images | ||
run: | | ||
pip install coveralls | ||
docker-compose -f ./docker-compose-unit-test.yml build -m 8g | ||
docker compose -f ./docker-compose-unit-test.yml build -m 8g | ||
# Runs a set of commands using the runners shell | ||
- name: Run Unit Tests | ||
run: | | ||
|
@@ -145,11 +145,11 @@ jobs: | |
|
||
- name: Build Docker Images | ||
run: | | ||
docker-compose -f ./docker-compose-doc-builder.yml build -m 8g | ||
docker compose -f ./docker-compose-doc-builder.yml build -m 8g | ||
# Building docs # Tell GitHub not to use jekyll to compile the docs | ||
- name: Building Docs | ||
run: | | ||
docker-compose -f ./docker-compose-doc-builder.yml up --abort-on-container-exit --force-recreate | ||
docker compose -f ./docker-compose-doc-builder.yml up --abort-on-container-exit --force-recreate | ||
sudo touch target/ai_docs/html/.nojekyll | ||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
|