-
Notifications
You must be signed in to change notification settings - Fork 12
38 lines (35 loc) · 1.03 KB
/
CI.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
name: shipengine-php
on:
pull_request:
branches:
- main
push:
branches:
- main
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
jobs:
ci:
name: shipengine-php test suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.GITHUB_TOKEN }}
- uses: technote-space/toc-generator@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
tools: phpcs, phpstan, phpunit, php-cs-fixer
extensions: xdebug
runner_github_workspace_path: ${{ github.workspace }}
- run: composer install
- run: php-cs-fixer fix -vvv --config=.php-cs-fixer.dist.php
# - run: phpcs --standard=./ruleset.xml PSR2 src
- run: phpstan analyse src --level 5
- run: phpunit
- run: ./vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v