From 3826d568392d85b7ad73243f60ff4d31b9d5f885 Mon Sep 17 00:00:00 2001 From: Dennis Riehle Date: Wed, 29 Dec 2021 11:36:05 +0100 Subject: [PATCH] set up CI pipeline on Alpine Linux Signed-off-by: Dennis Riehle --- .github/workflows/continuous-integration.yml | 32 +++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index fe5f1b44..30e4df6a 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -30,4 +30,34 @@ jobs: - name: ${{ matrix.name }} uses: laminas/laminas-continuous-integration-action@v1 with: - job: ${{ matrix.job }} \ No newline at end of file + job: ${{ matrix.job }} + + alpine: + name: QA Checks (PHPUnit on PHP 8.1 with Alpine Linux) + runs-on: ubuntu-latest + container: + image: php:8.1-alpine + steps: + - 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