-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from matyo91/feature/gh-actions
Replace PrettyCI by GH-actions
- Loading branch information
Showing
3 changed files
with
39 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Code Quality | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
code-quality: | ||
name: Code Quality | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php: [ '7.2', '7.3', '7.4' ] | ||
|
||
steps: | ||
- name: 'Init repository' | ||
uses: actions/checkout@v2 | ||
|
||
- name: 'Setup PHP' | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv, swoole | ||
tools: composer | ||
|
||
- name: "Install dependencies" | ||
run: composer install | ||
|
||
- name: 'Tests unit' | ||
run: composer tests-unit | ||
|
||
- name: 'Tests examples' | ||
run: composer tests-examples | ||
|
||
- name: 'Static analysis' | ||
run: composer static-analysis |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.