-
-
Notifications
You must be signed in to change notification settings - Fork 32
53 lines (37 loc) · 1.04 KB
/
install.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: Install
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Start database
run: sudo /etc/init.d/mysql start
- name: Create database
run: mysql -e "CREATE DATABASE IF NOT EXISTS liberu;" -uroot -proot
- name: Copy environment file
run: cp .env.testing .env
- name: Install dependencies
run: composer install
- name: Generate application key
run: php artisan key:generate
- name: Run database migrations
run: php artisan migrate
- name: Seed database
run: php artisan db:seed
- name: Install npm dependencies
run: npm install
- name: Build frontend assets
run: npm run build