-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for PHP 8.1, 8.2 (#489)
BREAKING CHANGE: This release requires a PHP version of >= 8.1.0.
- Loading branch information
Showing
27 changed files
with
18,133 additions
and
3,001 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,60 @@ | ||
--- | ||
name: ci | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- "**" | ||
env: | ||
NODE_VERSION: 16.17.1 | ||
jobs: | ||
check-lock-file-version: | ||
name: NPM Lock File Version | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Check NPM lock file version | ||
uses: mansona/npm-lockfile-version@v1 | ||
with: | ||
version: 2 | ||
build: | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 30 | ||
strategy: | ||
matrix: | ||
include: | ||
- name: PHP 8.1 | ||
PHP_VERSION: 8.1 | ||
- name: PHP 8.2 | ||
PHP_VERSION: 8.2 | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
- name: Setup PHP with PECL extension | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.PHP_VERSION }} | ||
- name: Cache Node.js modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node-${{ env.NODE_VERSION }}- | ||
- run: composer install | ||
- run: npm ci | ||
- run: npm start | ||
- run: npm run lint | ||
- run: npm run test:coverage | ||
- run: npm run document-check | ||
- run: npm run document | ||
env: | ||
CI: true | ||
- run: bash <(curl -s https://codecov.io/bash) |
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: release-manual-docs | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
default: '' | ||
description: 'Version tag:' | ||
jobs: | ||
docs-publish: | ||
if: github.event.inputs.tag != '' | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.inputs.tag }} | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Cache Node.js modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Generate Docs | ||
run: | | ||
npm ci | ||
npm run document-check | ||
npm run documentation | ||
env: | ||
SOURCE_TAG: ${{ github.event.inputs.tag }} | ||
- name: Deploy | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./.phpdoc/build |
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 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
Oops, something went wrong.