-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.05 KB
/
run-tests.yml
File metadata and controls
49 lines (42 loc) · 1.05 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Run Tests
on:
pull_request:
paths:
- '**.php'
- '.github/workflows/**'
- 'phpstan.neon'
- 'composer.*'
- 'docker-compose.ci.yml'
- 'codeception-legacy.yml'
push:
branches:
- develop
- master
paths:
- '**.php'
- '.github/workflows/**'
- 'phpstan.neon'
- 'composer.*'
workflow_dispatch:
jobs:
tests:
name: PHPUnit Tests
runs-on: ubuntu-latest
container:
image: php:8.3-cli
options: --user root
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install system dependencies
run: |
apt-get update
apt-get install -y git unzip libcurl4-openssl-dev
docker-php-ext-install curl
- name: Install Composer
run: |
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
- name: Run tests
run: bin/phpunit