diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..2476f57 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,23 @@ +name: 'GitHub Actions' +'on': + - push + +env: + APP_IMAGE: php-jsonparser + +jobs: + build: + runs-on: ubuntu-latest + steps: + - + name: 'Check out the repo' + uses: actions/checkout@v2 + - + name: 'Print Docker version' + run: 'docker -v' + - + name: 'Build image' + run: 'docker build -t $APP_IMAGE .' + - + name: 'Run tests' + run: 'docker run $APP_IMAGE composer ci' diff --git a/.travis.yml b/.travis.yml deleted file mode 100755 index 4b62fc1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -sudo: required - -language: bash - -services: - - docker - -script: - - export APP_IMAGE=php-jsonparser - - docker -v - - docker build -t $APP_IMAGE . - - docker run $APP_IMAGE composer ci