Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
duncan3dc committed Nov 24, 2019
1 parent e965e64 commit 9b0e528
Showing 1 changed file with 3 additions and 31 deletions.
34 changes: 3 additions & 31 deletions .github/workflows/buildcheck.yml
Expand Up @@ -4,36 +4,6 @@ on:
- cron: 0 10 1 * *

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- 7.1
- 7.2
- 7.3
- 7.4-rc
composer:
- ""
- "--prefer-lowest"

steps:
- uses: actions/checkout@v1

- name: Create Docker Container
run: |
docker build . -t ci-image --build-arg PHP_VERSION=${{ matrix.php }}
docker run --interactive --detach --volume ${{ github.workspace }}:/app --name ci ci-image
- name: Install Dependencies
run: docker exec ci composer update --no-interaction --no-ansi --prefer-dist ${{ matrix.composer }}

- name: PHPUnit
run: docker exec ci vendor/bin/phpunit

- name: Composer Validate
run: docker exec ci composer validate --strict

windows:
runs-on: windows-2019
Expand All @@ -47,5 +17,7 @@ jobs:
php -r "if (hash_file('sha384', 'composer-setup.php') === 'a5c698ffe4b8e849a443b120cd5ba38043260d5c4023dbf93e1558871f1f07f58274fc6f4c93bcfd858c6bd0775cd8d1') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
php composer.phar update
php composer.phar
git
php composer.phar update -vvv
vendor/bin/phpunit

0 comments on commit 9b0e528

Please sign in to comment.