-
Notifications
You must be signed in to change notification settings - Fork 14
47 lines (37 loc) · 1.16 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Run Tests
on:
push:
branches: [ main ]
pull_request:
jobs:
tests:
name: Tests (PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }})
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
php-versions: ['8.2']
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: posix, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo, sodium
coverage: none
- name: Copy .env
run: cp .env.example .env
- name: Install Composer Dependencies
run: |
composer remove laravel/nova --no-scripts --no-interaction
- name: Install Frontend Dependencies
run: npm install
- name: Build Assets
run: npm run build
- name: Generate Key
run: export APP_ENV=testing && php artisan key:generate
shell: bash
- name: Run PHP Tests
run: ./vendor/bin/pest