bumped lowest supported version of twig to 3.14.1 #23
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: Build and tests | |
on: | |
push: | |
branches: | |
- 'master' | |
- '[1-9].[0-9]' | |
tags: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
cancel: | |
name: Cancel previous workflow runs | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Cancelling | |
uses: styfle/cancel-workflow-action@0.7.0 | |
with: | |
access_token: ${{ github.token }} | |
build-and-test: | |
name: Build application ${{ matrix.composer-preferred-dependencies }} and run tests | |
runs-on: ubuntu-latest | |
needs: cancel | |
strategy: | |
matrix: | |
composer-preferred-dependencies: ['--prefer-lowest', ''] | |
steps: | |
- name: Install cypress dependencies | |
run: sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Setup PHP 8.3 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
extensions: pdo_sqlite | |
tools: symfony | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Install composer dependencies ${{ matrix.composer-preferred-dependencies }} | |
run: | | |
composer update --no-interaction --optimize-autoloader ${{ matrix.composer-preferred-dependencies }} | |
Tests/app/bin/console assets:install -v Tests/app | |
- name: Install and build test app JS | |
run: | | |
cd Tests/app | |
npm install | |
npm run build | |
- name: Install Cypress | |
run: | | |
npm install | |
npm run test:cypress-install | |
- name: Run JS unit tests | |
run: npm run test:unit | |
- name: Start PHP server | |
run: | | |
cd Tests/app | |
symfony serve --port=8080 --no-tls -d | |
- name: Run E2E tests | |
run: npm run test:e2e |