这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,40 +20,59 @@ jobs:
include:
- php: 7.2
deps: low
container:
image: docker://jakzal/phpqa:php${{ matrix.php }}-alpine

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2

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

- if: matrix.deps == 'high'
run: make install test package package-devkit

- if: matrix.deps == 'low'
run: make update-min test-min

- uses: actions/upload-artifact@v1
if: matrix.php == '7.2' && matrix.deps == 'high'
with:
name: toolbox.phar
path: build/toolbox.phar

- uses: actions/upload-artifact@v1
if: matrix.php == '7.2' && matrix.deps == 'high'
with:
name: devkit.phar
path: build/devkit.phar

integration-tests:
runs-on: ubuntu-latest
name: Run integration tests
needs: tests
strategy:
matrix:
php: [7.2, 7.3, 7.4]
container:
image: docker://jakzal/phpqa:php${{ matrix.php }}-alpine

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
tools: flex
ini-values: "phar.readonly=0"

- uses: actions/download-artifact@v1
with:
name: toolbox.phar
path: build/

- run: make test-integration

publish-phars:
runs-on: ubuntu-latest
name: Publish PHARs
Expand Down