Skip to content

update readme

update readme #90

Workflow file for this run

name: CI
on:
push:
paths:
- '.github/**'
- 'src/**'
- 'tests/**'
- 'composer.lock'
pull_request:
paths:
- '.github/**'
- 'src/**'
- 'tests/**'
- 'composer.lock'
workflow_dispatch:
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
env:
extensions: intl, pcov
key: cache-v1 # can be any string, change to clear the extension cache.
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6
- name: Setup cache environment
id: extcache
uses: shivammathur/cache-extensions@dc68c2f249835121c5e44b90b1b5b56ea02735ba # v1.10.1
with:
php-version: ${{ matrix.php-versions }}
extensions: ${{ env.extensions }}
key: ${{ env.key }}
- name: Cache extensions
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ${{ steps.extcache.outputs.dir }}
key: ${{ steps.extcache.outputs.key }}
restore-keys: ${{ steps.extcache.outputs.key }}
- name: Setup PHP
uses: shivammathur/setup-php@fc14643b0a99ee9db10a3c025a33d76544fa3761 # v2.30.5
with:
php-version: ${{ matrix.php-versions }}
extensions: ${{ env.extensions }}
- name: Dependencies
run: composer update
- name: Lint
run: composer run lint
- name: Test
run: composer run test