-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44d7ffb
commit 0d22a7f
Showing
7 changed files
with
129 additions
and
42 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
name: BC Check | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
workflow_dispatch: | ||
jobs: | ||
bc_check: | ||
name: Backwards Compatibility Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install BC checker | ||
run: composer require --dev roave/backward-compatibility-check | ||
- name: Check for BC breaks | ||
run: vendor/bin/roave-backward-compatibility-check |
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,23 @@ | ||
name: Create Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Create a Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false |
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,79 @@ | ||
name: Tests | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
workflow_dispatch: | ||
jobs: | ||
code_style: | ||
name: Test code style | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
version: ['7.3', '7.4', '8.0'] | ||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.version }} | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Install Dependencies | ||
run: composer install | ||
- name: Test code style | ||
run: composer fixer -- --dry-run | ||
static_analysis: | ||
name: Static analysis | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
version: ['7.3', '7.4', '8.0'] | ||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.version }} | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Install Dependencies | ||
run: composer install | ||
- name: Run static analysis | ||
run: composer phpstan | ||
tests: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
version: ['7.3', '7.4', '8.0'] | ||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.version }} | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Install Dependencies | ||
run: composer install | ||
- name: Run tests | ||
run: composer phpunit | ||
coverage: | ||
name: Report Coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
- name: Install Dependencies | ||
run: composer install | ||
- name: Generate Coverage | ||
run: composer phpunit -- --coverage-clover ./build/logs/clover.xml | ||
- name: Download Coverage Client | ||
run: wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar | ||
- name: Publish Coverage | ||
run: php php-coveralls.phar -v | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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
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