diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml new file mode 100644 index 00000000..a26c59c5 --- /dev/null +++ b/.github/workflows/phpunit.yml @@ -0,0 +1,45 @@ +name: phpunit +on: + push: + branches: + - dev + paths: + - .github/workflows/phpunit.yml + - app/** + - bootstrap/** + - config/** + - database/** + - docker/** + - public/** + - resources/** + - routes/** + - storage/** + - tests/** + - .dockerignore + - .env.travis + - artisan + - composer.json + - composer.lock + - Dockerfile + - phpunit.xml + - server.php + +jobs: + verify: + runs-on: ubuntu-latest + env: + DOCKER_BUILDKIT: "1" + steps: + - uses: actions/checkout@v2.3.4 + + - name: Build test image + run: docker build --target test -t test-container . + + - name: Run tests in test container + run: | + touch coverage.txt + docker run --rm \ + test-container + + - name: Build final image + run: docker build . \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index fe1fac6a..8b392b35 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,4 +35,4 @@ after_success: branches: only: - master - - dev \ No newline at end of file + # - dev \ No newline at end of file