-
Notifications
You must be signed in to change notification settings - Fork 8
25 lines (25 loc) · 845 Bytes
/
Copy pathtests.yml
File metadata and controls
25 lines (25 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup PHP
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2
with:
php-version: '8.1'
extensions: pdo, pdo_mysql, mbstring, json, curl, gd, fileinfo, openssl
coverage: xdebug
tools: composer:v2
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
env:
COMPOSER_PLATFORM_CHECK: 'false'
- name: Run Unit Tests (no database required)
run: src/lib/vendor/bin/phpunit --configuration phpunit.xml --testsuite "Unit Tests" --no-coverage --colors=never