buildcheck.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. on:
  2. push:
  3. schedule:
  4. - cron: 0 10 1 * *
  5. jobs:
  6. build:
  7. runs-on: ubuntu-latest
  8. strategy:
  9. fail-fast: false
  10. matrix:
  11. php:
  12. - 7.1
  13. - 7.2
  14. - 7.3
  15. - 7.4-rc
  16. composer:
  17. - ""
  18. - "--prefer-lowest"
  19. steps:
  20. - uses: actions/checkout@v1
  21. - name: Create Docker Container
  22. run: |
  23. docker build . -t ci-image --build-arg PHP_VERSION=${{ matrix.php }}
  24. docker run --interactive --detach --volume ${{ github.workspace }}:/app --name ci ci-image
  25. - name: Install Dependencies
  26. run: docker exec ci composer update --no-interaction --no-ansi --prefer-dist ${{ matrix.composer }}
  27. - name: PHPUnit
  28. run: docker exec ci vendor/bin/phpunit
  29. - name: Composer Validate
  30. run: docker exec ci composer validate --strict
  31. windows:
  32. runs-on: windows-2019
  33. steps:
  34. - uses: actions/checkout@master
  35. - uses: nanasess/setup-php@master
  36. - uses: nanasess/composer-installer-action@master
  37. - name: Install dependencies
  38. run: composer update
  39. - name: Run test suite
  40. run: vendor/bin/phpunit