Skip to content

Commit

Permalink
fixed: specify shell
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-8 committed Feb 5, 2025
1 parent 625b51a commit 2f6a4de
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/actions/run-coopcycle-web/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ runs:
using: "composite"
steps:
- name: Create .env file
shell: bash
run: cp .env.dist .env
- name: Pull Docker images
shell: bash
run: docker compose pull --ignore-pull-failures
- name: Prepare OSRM data
shell: bash
run: |
docker compose run -T --rm osrm wget --no-check-certificate https://coopcycle-assets.sfo2.digitaloceanspaces.com/osm/paris-france.osm.pbf -O /data/data.osm.pbf
docker compose run -T --rm osrm osrm-extract -p /opt/bicycle.lua /data/data.osm.pbf
Expand All @@ -18,18 +21,23 @@ runs:
# We create the node_modules/ folder *BEFORE* starting the containers,
# so that it can be removed without problems.
- name: Create node_modules directory
shell: bash
run: mkdir node_modules
- name: Start Docker containers
shell: bash
run: docker compose up -d
- name: Wait for PHP-FPM
shell: bash
run: until docker inspect --format='{{ .State.Health.Status }}' $(docker compose ps -q php) | grep -wq healthy; do sleep 5; done
timeout-minutes: 2
- name: Wait webpack
shell: bash
run: until [ -f "web/build/entrypoints.json" ]; do sleep 5; done
timeout-minutes: 2
- name: Create database
shell: bash
run: docker compose exec -T php bin/console doctrine:schema:create --env=test
- name: Create typesense collections
shell: bash
run: docker compose exec -T php bin/console typesense:create --env=test
- name: Validate database schema
shell: bash
run: docker compose exec -T php bin/console doctrine:schema:validate --env=test --skip-sync
2 changes: 2 additions & 0 deletions .github/actions/upload-test-logs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ runs:
using: "composite"
steps:
- name: Show Symfony logs
shell: bash
run: docker compose exec -T php cat var/logs/test-$(date +'%Y-%m-%d').log | grep -v DEBUG
- name: Upload Symfony logs
shell: bash
run: docker compose exec -T php cat var/logs/test-$(date +'%Y-%m-%d').log > symfony_logs.log
- name: Upload Symfony logs artifact
uses: actions/upload-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- uses: actions/checkout@v2
- name: Run CoopCycle Web
uses: ./.github/actions/run-coopcycle-web
timeout-minutes: 5
- name: Run Behat
run: docker compose exec -T php vendor/bin/behat -f progress
- name: Show and upload Symfony test logs on failure
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- uses: actions/checkout@v2
- name: Run CoopCycle Web
uses: ./.github/actions/run-coopcycle-web
timeout-minutes: 5
- name: Setup CoopCycle
run: docker compose exec -T php bin/console coopcycle:setup --env=test
- name: Run Cypress
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ jobs:
- uses: actions/checkout@v2
- name: Run CoopCycle Web
uses: ./.github/actions/run-coopcycle-web
timeout-minutes: 5
- name: Run Jest
run: docker compose exec -T webpack npm run jest
1 change: 1 addition & 0 deletions .github/workflows/test_php_unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- uses: actions/checkout@v2
- name: Run CoopCycle Web
uses: ./.github/actions/run-coopcycle-web
timeout-minutes: 5
- name: Run PHPUnit
run: |
cp phpunit.xml.dist phpunit.xml
Expand Down

0 comments on commit 2f6a4de

Please sign in to comment.