-
Notifications
You must be signed in to change notification settings - Fork 314
58 lines (46 loc) · 1.44 KB
/
run-phar-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
name: Run Phar tests
on:
workflow_call:
jobs:
test:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
steps:
- name: Check out code
uses: actions/checkout@v4.2.2
with:
sparse-checkout-cone-mode: false
sparse-checkout: |
.github
test
- name: Install PHP
uses: shivammathur/setup-php@2.31.1
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Download build artifacts
uses: actions/download-artifact@v4.1.8
with:
name: binaries
path: build
- name: Make binaries executable
run: chmod +x build/*/psysh
- name: Smoke test
run: .github/bin/smoketest.sh psysh
- name: Set up problem matchers
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Composer init
run: composer init --no-interaction --name=psy/test --autoload=test/
- name: Install PHPUnit
uses: nick-fields/retry@v3.0.0
with:
timeout_minutes: 5
max_attempts: 5
command: composer require --no-interaction --no-progress "phpunit/phpunit:^9.6"
- name: Run test suite
run: vendor/bin/phpunit --bootstrap build/psysh/psysh --exclude-group isolation-fail test/