-
Notifications
You must be signed in to change notification settings - Fork 32
33 lines (33 loc) · 1.14 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
name: Run tests
on:
push:
branches: [main, ci]
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
test:
name: PHP ${{ matrix.php }}, ${{ matrix.dependencies }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, macos, windows]
php: ["8.1", "8.2", "8.3"]
dependencies: [lowest, stable]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.json') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php }}-composer-${{ matrix.dependencies }}-
${{ runner.os }}-php-${{ matrix.php }}-composer-
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- run: |
composer remove tightenco/duster --dev
composer update --prefer-${{ matrix.dependencies }} --prefer-dist --no-interaction
composer require illuminate/view:* --with-all-dependencies --no-interaction
- run: vendor/bin/phpunit