-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.14 KB
/
buildTest.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
name: CI Pipeline
on: [push]
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-22.04 ]
php: [ '7.4','8.0', '8.1', '8.2', '8.3' ]
name: Build and test on ${{ matrix.php }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Force PHP ${{ matrix.php }}
uses: nanasess/setup-php@master
with:
php-version: ${{ matrix.php }}
- name: Validate composer.json and composer.lock
run: composer validate
- name: Require php-cs-fixer
run: |
mkdir --parents ./tools/php-cs-fixer
composer require --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer "friendsofphp/php-cs-fixer:3.0.0" --prefer-dist --no-progress
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: phpstan
run: |
./vendor/bin/phpstan --no-interaction --no-ansi analyse
- name: php-cs-fixer
run: |
./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix -v --config=.php-cs-fixer.dist.php --using-cache=no --dry-run