Switch serialization support to tiny-blocks/mapper. #50
Workflow file for this run
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 | |
on: | |
pull_request: | |
env: | |
PHP_VERSION: '8.3' | |
jobs: | |
auto-review: | |
name: Auto review | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ env.PHP_VERSION }} | |
- name: Install dependencies | |
run: composer update --no-progress --optimize-autoloader | |
- name: Run review | |
run: composer review | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ env.PHP_VERSION }} | |
- name: Install dependencies | |
run: composer update --no-progress --optimize-autoloader | |
- name: Clean up Docker | |
run: docker system prune -f | |
- name: Create Docker network | |
run: docker network create tiny-blocks | |
- name: Create Docker volume for migrations | |
run: docker volume create test-adm-migrations | |
- name: Run tests | |
run: | | |
docker run --network=tiny-blocks \ | |
-v ${PWD}:/app \ | |
-v ${PWD}/tests/Integration/Database/Migrations:/test-adm-migrations \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-w /app \ | |
gustavofreze/php:${{ env.PHP_VERSION }} bash -c "composer tests" |