Skip to content

Update to v2

Update to v2 #8

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
lint:
name: Static analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none
- run: composer update --ansi --no-progress --prefer-dist --no-interaction
- run: composer run lint
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '7.1', '7.4', '8.0', '8.2' ]
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- run: composer update --ansi --no-progress --prefer-dist --no-interaction
- run: composer run test:cover
- env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: bash <(curl -s https://codecov.io/bash)