Skip to content

ci: Move to github actions #4

ci: Move to github actions

ci: Move to github actions #4

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '8.1'
- '8.2'
symfony-versions:
- '^5.4'
- '^6.4'
- '^7.0'
name: PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony-versions }}
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.composer/cache/files
key: ${{ matrix.php }}-${{ matrix.symfony-versions }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Install dependencies
run: composer require "symfony/symfony:${{ matrix.symfony-versions }}" --no-update
if: matrix.symfony-versions
- name: Install dependencies
run: composer install
- name: Run PHPUnit tests
run: |
./vendor/bin/phpunit