Skip to content

Commit

Permalink
try running on Alpine
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 c89333e commit 023e20b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 18 deletions.
52 changes: 41 additions & 11 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
- 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 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
7 changes: 0 additions & 7 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -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
}
Expand Down

0 comments on commit 023e20b

Please sign in to comment.