Skip to content

Commit f42d444

Browse files
committed
devops: add github actions
1 parent f271b24 commit f42d444

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Laravel Lint and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
laravel_lint_and_test:
10+
name: Laravel Test and PHPStan
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v2
16+
17+
- name: Set up PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: '8.3'
21+
extensions: mbstring, pdo_mysql, exif, pcntl
22+
23+
- name: Install Composer Dependencies
24+
run: composer install --no-progress --no-suggest --no-interaction --prefer-dist
25+
26+
- name: Generate Application Key
27+
run: php artisan key:generate
28+
29+
- name: Run phpcs
30+
run: tools/scripts/phpstan-all-files.sh
31+
32+
- name: Run phpinsights
33+
run: vendor/bin/phpinsights --no-interaction
34+
35+
- name: Run phpstan
36+
run: tools/scripts/phpstan-all-files.sh
37+
38+
- name: Run Laravel Tests
39+
run: composer test

0 commit comments

Comments
 (0)