updated ci tasks #63
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: Tests | |
on: [push] | |
jobs: | |
cs-check: | |
name: Check Coding Standards | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache composer | |
uses: actions/cache@v3 | |
with: | |
path: ~/.composer/cache/ | |
key: composer-ubuntu-${{ github.sha }} | |
- name: Setup | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
extensions: mbstring, fileinfo, json, intl, dom | |
tools: castor | |
- name: Run composer install | |
run: composer install -n --prefer-dist | |
- name: Check coding standards | |
run: castor qa:cs --dry-run | |
tests: | |
name: Run tests for PHP ${{ matrix.php-versions }} | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 15 | |
matrix: | |
php-versions: ['8.0', '8.1', '8.2'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache composer | |
uses: actions/cache@v3 | |
with: | |
path: ~/.composer/cache/ | |
key: composer-${{ matrix.php-versions }}-${{ github.sha }} | |
- name: setup | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, fileinfo, json, intl, dom | |
tools: castor | |
- name: Run composer install | |
run: composer install -n --prefer-dist | |
- name: Run tests | |
run: castor qa:test |