Skip to content

test: Use github actions #5

test: Use github actions

test: Use github actions #5

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- master
jobs:
qa:
strategy:
matrix:
php: [ '8.0','8.1','8.2','8.3' ]
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl
coverage: xdebug
tools: composer:v2
- uses: actions/checkout@v3
- name: Download phing
run: mkdir bin && curl -L -C - -s -S -o bin/phing https://github.com/phingofficial/phing/releases/download/3.0.0-rc6/phing-3.0.0-RC6.phar && chmod +x bin/phing
- name: composer:validate
run: bin/phing composer:validate
- name: composer:install
run: bin/phing composer:install
- name: php:lint
run: bin/phing php:lint
- name: cs:fix
run: bin/phing cs:fix
- name: cs:check
run: bin/phing cs:check
- name: phpstan:analyze
run: bin/phing phpstan:analyze
- uses: isbang/[email protected]
with:
compose-file: "./compose.yaml"
down-flags: "--volumes"
- name: phpunit:run
run: bin/phing phpunit:run