-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (32 loc) · 1.02 KB
/
run-checks.yaml
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
name: Commit Pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- name: Install Composer dependencies
run: composer install
- name: Create .env file
run: cp .env.example .env
- name: Create App Key
run: php artisan key:generate
- name: Run tests
run: |
vendor/bin/phpstan --memory-limit=1G analyse
php artisan test tests/Unit
# [chuck 2025-02-06] Removed pint. Its not only grotesquely slow, it doesn't even fix things in one pass.
# If we're going to have style wars, I'd rather it were between humans and not within one insane formatter.
# - name: Run tests
# run: |
# vendor/bin/pint --test
# vendor/bin/phpstan --memory-limit=1G analyse
# php artisan test tests/Unit