diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml new file mode 100644 index 0000000..69a331d --- /dev/null +++ b/.github/workflows/continuous-integration.yml @@ -0,0 +1,50 @@ +name: "Integrate" + +on: + pull_request: + pull_request_target: + push: + branches: + - master + +jobs: + ci: + name: "Run Build" + runs-on: ubuntu-latest + + strategy: + matrix: + php-version: + - 7.1 + + services: + gotenberg: + image: thecodingmachine/gotenberg:6 + ports: + - 3000:3000 + + steps: + - name: "Checkout" + uses: actions/checkout@v2 + + - name: "Install PHP" + uses: shivammathur/setup-php@v2 + with: + coverage: none + php-version: ${{ matrix.php-version }} + tools: composer:v2 + + - name: "Install Dependencies" + run: composer install + + - name: "Run csfix" + run: composer run csfix + + - name: "Run cscheck" + run: composer run cscheck + + - name: "Run phpstan" + run: composer run phpstan + + - name: "Run Tests" + run: composer run phpunit diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 61b853e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -sudo: required - -language: generic - -services: - - docker - -script: - - make lint - - make tests \ No newline at end of file