Skip to content

Tests

Tests #2185

Workflow file for this run

name: Tests
on:
push:
branches:
- master
- development
pull_request:
branches:
- master
schedule:
- cron: '0 0 * * *'
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: ['8.1', '8.2', '8.3']
name: PHP ${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, libxml, mbstring, mcrypt
coverage: none
# - name: Validate composer.json and composer.lock
# run: composer validate --strict
# - name: Cache Composer packages
# id: composer-cache
# uses: actions/cache@v3
# with:
# path: vendor
# key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
# restore-keys: |
# ${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress --no-suggest
- name: Copy environment file
run: cp .env.example .env
- name: Run test suite
run: vendor/bin/phpunit