test.yml 684 B

123456789101112131415161718192021
  1. name: Koseven
  2. on: [push,pull_request]
  3. jobs:
  4. test:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v1
  8. - name: Download current Docker-Image
  9. run: docker pull koseven/docker:travis-devel
  10. - name: Mount Directories and run Docker-Machine
  11. run: docker run -dtP --name unittest -v /home/runner/work/koseven/koseven:/tmp/koseven/ koseven/docker:travis-devel
  12. - name: Install composer dependencies
  13. run: docker exec unittest /bin/sh -c "service redis-server start; cd /tmp/koseven; composer install"
  14. - name: Run Koseven Unittest(s)
  15. run: docker exec unittest /bin/sh -c "cd /tmp/koseven; php vendor/bin/phpunit"