Skip to content

Commit

Permalink
Clean install and CI mode
Browse files Browse the repository at this point in the history
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
  • Loading branch information
btlogy committed Feb 2, 2024
1 parent 4884920 commit aacaf03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
- name: Prepare containers
run: |
docker compose build --build-arg uid="$(id -u)" --build-arg gid="$(id -g)" client
docker compose run --no-deps client npm i
docker compose run --no-deps -e CI=true client npm clean-install
- name: Deploy package
run: docker compose run --no-deps client npm run deploy
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,14 @@ jobs:
# Build images if any client is missing
test $CLIENT -eq 0 -a $CLIENT_E2E -eq 0 || \
docker compose --progress plain -f docker-compose.yml -f docker-compose.e2e.yml --profile e2e \
build --build-arg uid=$(id -u) --build-arg gid=${_GID}
build --build-arg uid=$(id -u) --build-arg gid=${_GID}
- name: Setup containers
run: |
docker compose run --rm --no-deps client npm i
docker compose run --rm --no-deps -e CI=true client npm clean-install
docker compose run --rm --no-deps client ./scripts/setup.sh
docker compose -f docker-compose.yml -f docker-compose.e2e.yml --profile e2e run --rm --no-deps client-e2e npm i
docker compose -f docker-compose.yml -f docker-compose.e2e.yml --profile e2e \
run --rm --no-deps -e CI=true client-e2e npm clean-installed
- name: Start devserver
run: |
Expand All @@ -113,7 +114,8 @@ jobs:

- name: Run END-2-END tests
run: |
docker compose --progress plain -f docker-compose.yml -f docker-compose.e2e.yml --profile e2e run --rm client-e2e
docker compose --progress plain -f docker-compose.yml -f docker-compose.e2e.yml --profile e2e \
run --rm client-e2e
- name: Stop containers
run: docker compose -f docker-compose.yml -f docker-compose.e2e.yml --profile e2e down
Expand Down

0 comments on commit aacaf03

Please sign in to comment.