Fix deprecated sf 5 4 #136
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: | |
push: | |
branches: | |
- "master" | |
jobs: | |
build_test: | |
runs-on: ubuntu-latest | |
name: Build and test on ${{ matrix.image }} | |
container: ${{ matrix.image }} | |
strategy: | |
matrix: | |
image: | |
- smartbooster/php-fpm:7.4-builder | |
- registry.gitlab.com/pia-production/hosting/docker-php:8.2 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Check PHP Version | |
run: php -v | |
# —— Composer 🧙️ ————————————————————————————————————————————————————————— | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache composer dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install | |
run: composer install --prefer-dist | |
# —— QA ✔️️ ——————————————————————————————————————————————————————————————— | |
- name: Qualimetry | |
run: make qa | |
# —— Tests 🧪 ———————————————————————————————————————————————————————————— | |
- name: Phpunit tests | |
run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover coverage.xml | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
- name: "Upload coverage to Codecov" | |
uses: codecov/codecov-action@v1 |