diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d0c1236..9a2e3a79 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,24 +20,34 @@ 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 @@ -45,15 +55,24 @@ jobs: 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