-
Notifications
You must be signed in to change notification settings - Fork 44
82 lines (70 loc) · 2.01 KB
/
larastan.yaml
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
72
73
74
75
76
77
78
79
80
81
82
name: Larastan
on:
push:
branches:
- "9.*"
- "10.*"
- "11.*"
- "master"
pull_request:
jobs:
laravel-tests:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
timeout-minutes: 35
strategy:
matrix:
os:
- "ubuntu-latest"
php:
- 8.2
dependencies:
- "highest"
experimental:
- true
name: PHP${{ matrix.php }} on ${{ matrix.os }} (${{ matrix.dependencies }})
services:
mysql:
image: mysql:5.7
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: nova_dusk
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
redis:
image: redis:5.0
ports:
- 6379:6379
options: --entrypoint redis-server
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Node 16
uses: actions/setup-node@v4
with:
node-version: '16.x'
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- uses: actions/checkout@v4
name: Checkout private tools
with:
repository: laravel/nova
token: ${{ secrets.MY_GITHUB_TOKEN }}
path: nova
ref: "4.0"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, intl, fileinfo
coverage: none
- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache"
- name: List Installed Dependencies
run: composer show -D
- name: Run Larastan
run: php vendor/bin/phpstan analyse