From 52d8400a8f055d4febada4dbaefc3d078be74644 Mon Sep 17 00:00:00 2001 From: Dennis Riehle Date: Wed, 29 Dec 2021 12:14:03 +0100 Subject: [PATCH] try running on Alpine Signed-off-by: Dennis Riehle --- .github/workflows/continuous-integration.yml | 52 +++++++++++++++----- .laminas-ci.json | 7 --- 2 files changed, 41 insertions(+), 18 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index fe5f1b44..6f0517d6 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -19,15 +19,45 @@ jobs: id: matrix uses: laminas/laminas-ci-matrix-action@v1 - qa: - name: QA Checks - needs: [matrix] - runs-on: ${{ matrix.operatingSystem }} - strategy: - fail-fast: false - matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }} +# qa: +# name: QA Checks +# needs: [matrix] +# runs-on: ${{ matrix.operatingSystem }} +# strategy: +# fail-fast: false +# matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }} +# steps: +# - name: ${{ matrix.name }} +# uses: laminas/laminas-continuous-integration-action@v1 +# with: +# job: ${{ matrix.job }} + + alpine: + name: QA Checks on Alpine + runs-on: ubuntu-latest + container: + image: php:8.1-alpine steps: - - name: ${{ matrix.name }} - uses: laminas/laminas-continuous-integration-action@v1 - with: - job: ${{ matrix.job }} \ No newline at end of file + - name: Show Alpine and PHP versions + run: | + cat /etc/os-release + php -v + - name: Install git, ext-mbstring and ext-xml + run: | + apk add git oniguruma-dev libxml2-dev + docker-php-ext-install mbstring + docker-php-ext-install xml + - name: Checkout + uses: actions/checkout@v2 + - name: Install composer + run: | + php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" + php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" + php composer-setup.php + php -r "unlink('composer-setup.php');" + - name: Install latest dependencies + run: php composer.phar update --ignore-platform-req=php + - name: PHPUnit + run: | + ls -la + ./vendor/bin/phpunit diff --git a/.laminas-ci.json b/.laminas-ci.json index 539a1f2a..bce3fa21 100644 --- a/.laminas-ci.json +++ b/.laminas-ci.json @@ -1,11 +1,4 @@ { - "checks": [ - { - "name": "PHPUnit on Alpine Linux", - "operatingSystem": "alpine-latest", - "job": "{\"php\": \"8.0\", \"dependencies\": \"latest\", \"command\": \"./vendor/bin/phpunit\"}" - } - ], "ignore_php_platform_requirements": { "8.1": true }