Skip to content

Run Tests

Run Tests #53

Workflow file for this run

name: tests
on:
# Commits made in Duster Fix will not trigger any workflows
# Tests are configured to run after the workflow finishes
workflow_run:
workflows: ["Duster Fix"]
types:
- completed
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: posix, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Install dependencies
run: composer install --no-interaction --no-suggest --ignore-platform-reqs
- name: Copy .env.example to .env
run: cp .env.testing.example .env.testing
- name: Run PHP tests
run: vendor/bin/phpunit