Skip to content

Commit

Permalink
Merge branch 'master' into parse-docblock-if-type-hint-array
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyvdSluijs authored May 19, 2023
2 parents a8339ff + 6bd8682 commit 87509fd
Show file tree
Hide file tree
Showing 6 changed files with 11,724 additions and 4,211 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: build

on: [push, pull_request]

env:
FORCE_COLOR: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
test:
strategy:
matrix:
php:
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
deps:
- lowest
- highest
include:
- php: 8.1
deps: highest
composer-options: --ignore-platform-reqs
exclude:
# that config currently breaks as older PHPUnit cannot generate coverage on PHP 8
- php: 8
deps: lowest

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- uses: ramsey/composer-install@v1
with:
dependency-versions: ${{ matrix.deps }}
composer-options: ${{ matrix.composer-options }}

- run: vendor/bin/phpunit --coverage-clover=coverage.xml --whitelist lib --bootstrap vendor/autoload.php tests

- uses: codecov/codecov-action@v1

release:
needs: test
if: github.repository_owner == 'felixfbecker' && github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2

- name: Install npm dependencies
run: npm ci

- name: Release
run: npm run semantic-release
56 changes: 0 additions & 56 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"require": {
"php": "^7.1 || ^8.0",
"netresearch/jsonmapper": "^1.0 || ^2.0",
"netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0",
"phpdocumentor/reflection-docblock": "^4.3.4 || ^5.0.0"
},
"require-dev": {
Expand Down
Loading

0 comments on commit 87509fd

Please sign in to comment.