← Back
Editing: docker-ci.yaml
name: CI on: push: branches: [ "main" ] pull_request: jobs: tests: runs-on: ubuntu-latest steps: - name: login to GitHub Container Registry uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v3 - name: Set env run: make env-ci - name: Download images and start containers run: make up - name: Cache Composer dependencies uses: actions/cache@v3 with: path: /tmp/composer-cache key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} - name: Composer install uses: php-actions/composer@v6 with: memory_limit: 512M php_version: "8.1" args: --ignore-platform-reqs --no-scripts - name: Setup Node.js uses: actions/setup-node@v3 with: node-version: '16' cache: 'yarn' - name: Compile JS assets run: yarn install && yarn encore dev - name: Warmup cache run: make warmup-test - name: Create database and load test fixtures run: make fixtures-test - name: PHPUnit tests run: make phpunit - name: Behat tests run: make behat - name: Check PSALM run: make psalm - name: Upload test log artifact uses: actions/upload-artifact@v4 if: ${{ failure() }} with: name: test-log path: var/log/test.log
Save File
Cancel