-
Notifications
You must be signed in to change notification settings - Fork 53
48 lines (38 loc) · 1.14 KB
/
laravel.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
name: Laravel
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: vendor
key: composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
composer-
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Install composer dependencies
run: |
composer install --no-scripts
- name: Install NPM dependencies
run: npm install
- name: Compile assets
run: npm run build:atom
- name: Prepare Laravel Application
run: |
cp .env.example .env
touch database/testing.sqlite
php artisan key:generate
- name: Run Test suite
run: php artisan test