forked from ploi/roadmap
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (32 loc) · 909 Bytes
/
php_test.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
name: PHP Composer
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.2', '8.3']
name: PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Validate composer.json and composer.lock
run: composer validate
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Generate key
run: php artisan key:generate
- name: Run npm install
run: npm install
- name: Run npm run production
run: npm run production
- name: Run test suite
run: ./vendor/bin/pest