-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (56 loc) · 1.99 KB
/
Copy pathtests.yml
File metadata and controls
67 lines (56 loc) · 1.99 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: tests
on:
push:
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019]
php: ['8.0', '8.1']
fail-fast: true
max-parallel: 1
name: PHP ${{ matrix.php }} - ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP on Linux
if: matrix.os != 'windows-2019'
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, igbinary, msgpack, lzf, zstd, lz4, memcached
tools: composer:v2
coverage: none
- name: Setup PHP on Windows
if: matrix.os == 'windows-2019'
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, gd, pdo_mysql, fileinfo, ftp, redis, memcached
tools: composer:v2
coverage: none
- name: Set LF on Windows
if: matrix.os == 'windows-2019'
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Prepare test environment
uses: nick-invision/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
command: composer require league/flysystem-adapter-test-utilities:^3.21 phpunit/phpunit:^9.6.16 --no-interaction --no-update
- name: Install dependencies
uses: nick-invision/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: vendor/bin/phpunit --verbose
env:
aListAddress: ${{ secrets.ALIST_ADDRESS }}
aListToken: ${{ secrets.ALIST_TOKEN }}
aListRoot: TestFly/${{ matrix.php }}-${{ matrix.os }}-${{ github.run_id }}