-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (36 loc) · 1.06 KB
/
QA.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
name: QA
on:
push:
branches: [ "main" , "development"]
pull_request:
branches: [ "main" , "development"]
jobs:
laravel-tests:
runs-on: ubuntu-latest
# services:
# mysql:
# image: mysql
# env:
# MYSQL_DATABASE: testing
# MYSQL_USER: testing
# MYSQL_PASSWORD: password
# MYSQL_ROOT_PASSWORD: password
# ports:
# - 3306:3306
# options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: 'PHP Check'
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- uses: actions/checkout@v3
with:
submodules: true
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress
# - name: PHP Cs Fixer
# run: vendor/bin/php-cs-fixer fix --dry-run
# - name: Larastan
# run: vendor/bin/phpstan analyze
- name: Execute tests (Unit and Feature tests) via PHPUnit
run: vendor/bin/phpunit