Skip to content

Commit

Permalink
Refactor docker-compose commands for integration and unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-m-dev committed Oct 7, 2024
1 parent c72d65e commit 1ababe1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/aliro_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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: |
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 1ababe1

Please sign in to comment.