Skip to content

Commit

Permalink
set up CI pipeline on Alpine Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Riehle <[email protected]>
  • Loading branch information
driehle committed Dec 29, 2021
1 parent abba193 commit 3826d56
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,34 @@ jobs:
- name: ${{ matrix.name }}
uses: laminas/laminas-continuous-integration-action@v1
with:
job: ${{ matrix.job }}
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

0 comments on commit 3826d56

Please sign in to comment.