-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (43 loc) · 1.02 KB
/
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
46
47
48
49
50
51
52
name: Run Tests
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: mbstring, pdo, sqlite
coverage: none
- name: Install Dependencies
run: |
composer install --ignore-platform-reqs
npm install
npm run build
- name: Set Up SQLite Database
run: |
touch database/database.sqlite
- name: Run Migrations
run: |
cp .env.example .env
php artisan key:generate
php artisan migrate
# # Start Laravel server in the background
# - name: Start Laravel Server
# run: |
# php artisan serve --host=127.0.0.1 --port=8000 &
# sleep 5 # Give the server time to start
# - name: Run Tests
# run: |
# php artisan test