Skip to content

Github actions PHAR building #10

Github actions PHAR building

Github actions PHAR building #10

Workflow file for this run

name: Tests
on:
pull_request: ~
push:
branches:
- main
jobs:
ci:
runs-on: ${{ matrix.os }}
permissions:
contents: write
strategy:
matrix:
os: [ubuntu-latest]
php: [8.2, 8.3]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ matrix.os }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: xdebug
- name: Install Dependencies
run: composer install --dev --no-interaction --prefer-dist --optimize-autoloader
- name: Run tests
run: ./vendor/bin/pest