-
Notifications
You must be signed in to change notification settings - Fork 99
68 lines (56 loc) · 1.54 KB
/
main.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: tests
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
coverage: none
- name: Setup Laravel
run: |
composer create-project laravel/laravel:10 ../app --prefer-dist
- name: Change stability to dev
run: |
cd ../app
sed -i 's/"minimum-stability": "stable"/"minimum-stability": "dev"/' composer.json
- name: Install Genesis
run: |
cd ../app
composer require devdojo/genesis dev-main
php artisan ui genesis
- name: Install Pest
run: |
cd ../app
composer config --no-interaction allow-plugins.pestphp/pest-plugin true
composer require pestphp/pest --with-all-dependencies
- name: Install NPM dependencies
run: |
cd ../app
npm i
- name: Compile assets
run: |
cd ../app
npm run build
- name: List Vendor Bin
run: |
cd ../app/vendor/pestphp/pest
ls -la
- name: PWD
run: pwd
- name: Execute tests
run: |
cd ../app
./vendor/bin/pest
env:
DB_CONNECTION: sqlite
DB_DATABASE: ":memory:"