-
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (42 loc) · 1.15 KB
/
tests.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
43
44
45
name: tests
on:
push:
pull_request:
schedule:
- cron: '0 2 * * *'
env:
PHP_CS_FIXER_IGNORE_ENV: 1
jobs:
tests:
name: Test on PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os: [ubuntu-latest]
php: ['8.2', '8.3']
laravel: [11]
# exclude:
# - php: 8.1
# laravel: 11
max-parallel: 26
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: redis, pdo, pdo_mysql, bcmath
tools: phpize
coverage: none
- name: Install Dependencies
run: |
composer require "laravel/framework:^${{ matrix.laravel }}" --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Run Cs Fixer
run: ./vendor/bin/php-cs-fixer fix $1 --dry-run --diff --verbose --show-progress=dots
- name: Run Analyse
run: composer analyse src
# - name: Run Test Cases
# run: |
# composer test