-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1020 Bytes
/
ci.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
name: CI
on: [push]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: json, dom, curl, libxml, mbstring
coverage: none
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Prepare The Environment
run: cp .env.example .env
- name: Install Composer Dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Install Node Dependencies
run: npm ci
- name: Generate Keys
run: php artisan key:generate
- name: Run Duster Lint
uses: tighten/duster-action@v3
with:
args: lint
- name: Run Node Lint
run: npm run lint
- name: Run Static Analysis
run: ./vendor/bin/phpstan analyse
- name: Run Node Build
run: npm run build
- name: Run Tests
run: php artisan test