-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.06 KB
/
Copy pathtests.yml
File metadata and controls
44 lines (35 loc) · 1.06 KB
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
name: Tests
on:
push:
branches: [master]
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: sqlite3, pdo_sqlite
coverage: none
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install PHP dependencies
run: composer install --prefer-dist --no-interaction --no-progress
- name: Prepare the application
run: |
cp .env.example .env
php artisan key:generate
touch database/database.sqlite
php artisan migrate --force
# The suite renders every page, and @vite throws without a manifest, so the
# assets have to exist before the tests run. Skipping this is what makes a
# freshly created application look broken to whoever tries it first.
- name: Build the assets
run: |
npm ci
npm run build
- name: Run the tests
run: php artisan test