-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (42 loc) · 1.08 KB
/
build.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
name: Build
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v2
- 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, imagick
coverage: none
- name: Copy Environment
run: cp .env.example .env
- name: Install Dependencies
run: |
composer install -n --prefer-dist
composer update
- name: Clear Config & Cache
run: |
php artisan config:clear
php artisan cache:clear
- name: Compile Front-End
run: |
npm install
npm run build
- name: Regenerate Key
run: php artisan key:generate
- name: Run Tests
run: ./vendor/bin/pest --parallel
- name: Run Pint
run: ./vendor/bin/pint --test