-
Notifications
You must be signed in to change notification settings - Fork 18
49 lines (37 loc) · 1018 Bytes
/
validate.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
on:
pull_request:
push:
branches:
- master
env:
PHP_EXTENSIONS: mbstring, mysqli, pdo_mysql
PHP_VERSION: 8.3
DB_DATABASE: laravel
DB_USERNAME: root
DB_PASSWORD: root
jobs:
static-code-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: ${{ env.PHP_EXTENSIONS }}
php-version: ${{ env.PHP_VERSION }}
- uses: ramsey/composer-install@v3
- run: vendor/bin/phpstan
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: ${{ env.PHP_EXTENSIONS }}
php-version: ${{ env.PHP_VERSION }}
- uses: ramsey/composer-install@v3
- run: |
sudo systemctl start mysql.service
mysql --user=root --password=root --execute='CREATE DATABASE laravel;'
- run: vendor/bin/phpunit