-
-
Notifications
You must be signed in to change notification settings - Fork 8
71 lines (54 loc) · 2.18 KB
/
run-tests.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Hyde Tests
on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "master", "develop" ]
jobs:
hyde-tests-master:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
dependency-version: [composer, latest]
php: [8.1, 8.2, 8.3]
runs-on: ${{ matrix.os }}
name: Hyde tests - ${{ matrix.os }} ${{ matrix.php }} (${{ matrix.dependency-version }})
if: github.ref == 'refs/heads/master' && github.event.repository.full_name == 'hydephp/hyde'
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: fileinfo, zip
- uses: actions/checkout@v3
- name: Require latest version
if: matrix.dependency-version == 'latest'
run: composer require hyde/framework:master hyde/testing
- name: Install additional dependencies
if: matrix.dependency-version != 'latest'
run: composer require hyde/testing --dev
- name: Download test runner configuration
run: curl https://raw.githubusercontent.com/hydephp/develop/master/packages/hyde/phpunit.xml.dist -o phpunit.xml.dist
- name: Execute tests (Unit and Feature tests) via Pest
run: vendor/bin/pest
hyde-tests-develop:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
php: [8.1, 8.2, 8.3]
runs-on: ${{ matrix.os }}
name: Hyde tests - ${{ matrix.os }} ${{ matrix.php }} (develop)
if: github.ref != 'refs/heads/master' && github.event.repository.full_name == 'hydephp/hyde'
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: fileinfo, zip
- uses: actions/checkout@v3
- name: Require latest development version
run: composer require hyde/framework:dev-develop hyde/testing:dev-master
- name: Download test runner configuration
run: curl https://raw.githubusercontent.com/hydephp/develop/master/packages/hyde/phpunit.xml.dist -o phpunit.xml.dist
- name: Execute tests (Unit and Feature tests) via Pest
run: vendor/bin/pest