Skip to content

Commit

Permalink
Same env for everyone
Browse files Browse the repository at this point in the history
  • Loading branch information
lpoujade committed Feb 11, 2025
1 parent 210c943 commit 80f0ff0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ jobs:
- name: Setup env
run: |
cp .env.example .env
sed -i "s|#UID=.*|UID=`id -u`|g" .env
sed -i "s|#GID=.*|GID=`id -g`|g" .env
sed -i "s|#COMPOSE_FILE=.*|COMPOSE_FILE=docker-compose.yml:compose.dev.yml:compose.test.yml|g" .env
sed -i "s|APP_ENV=.*|APP_ENV=dev|g" .env
sed -i "s|SF_APP_SECRET=.*|SF_APP_SECRET=`openssl rand -hex 16`|" .env
sed -i "s|SF_TOKEN_ENCRYPTION_IV=.*|SF_TOKEN_ENCRYPTION_IV=`openssl rand -hex 8`|" .env
sed -i "s|SF_TOKEN_ENCRYPTION_SALT=.*|SF_TOKEN_ENCRYPTION_SALT=`openssl rand -base64 32`|" .env
sed -i "s|example.com|agentj.local|g" .env
sed -i "s|#UID=.*|UID=`id -u`|g" .env
sed -i "s|#GID=.*|GID=`id -g`|g" .env
- name: Run docker-compose
uses: hoverkraft-tech/compose-action@v2.0.1
Expand All @@ -45,8 +48,6 @@ jobs:
down-flags: --volumes

- name: Run tests
env:
COMPOSE_FILE: docker-compose.yml:compose.dev.yml:compose.test.yml
run: |
docker compose exec -u www-data app ./docker/tests/testmail.sh
exit $(cat `find tests/results -name '*.result'` | grep -c failed)

0 comments on commit 80f0ff0

Please sign in to comment.