From 978453ae2c498863d93138ed13ad692f8dd2b832 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Nov=C3=A1k?= Date: Tue, 30 Jul 2024 13:09:17 +0200 Subject: [PATCH] Change CI from Travis to GitHub Actions --- .github/workflows/push.yml | 23 +++++++++++++++++++++++ .travis.yml | 12 ------------ composer.json | 5 ++++- 3 files changed, 27 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/push.yml delete mode 100755 .travis.yml 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 diff --git a/composer.json b/composer.json index 4efb66a..0de2b26 100755 --- a/composer.json +++ b/composer.json @@ -56,6 +56,9 @@ }, "config": { "sort-packages": true, - "optimize-autoloader": true + "optimize-autoloader": true, + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } } }