Merge pull request #5 from Squidex/gh-actions-update-1725207050 #35
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
name: ci | |
concurrency: build | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Prepare - Checkout | |
uses: actions/[email protected] | |
- name: Prepare - Compose | |
uses: php-actions/composer@v6 | |
- name: Test - Start Compose | |
run: docker compose up -d | |
working-directory: tests/docker | |
- name: Test - RUN | |
uses: php-actions/phpunit@v4 | |
env: | |
CONFIG__WAIT: 60 | |
CONFIG__SERVER__URL: http://localhost:8080 | |
with: | |
bootstrap: vendor/autoload.php | |
- name: Test - Dump docker logs on failure | |
if: failure() | |
uses: jwalton/[email protected] | |
with: | |
images: 'squidex,squidex/resizer' | |
tail: '100' | |
- name: Test - Cleanup | |
if: always() | |
run: docker compose down | |
working-directory: tests/docker |