Ver código fonte

Migrated from travis to github workflows

Edgard 5 anos atrás
pai
commit
366f8d7406
2 arquivos alterados com 46 adições e 29 exclusões
  1. 46 0
      .github/workflows/lint.yml
  2. 0 29
      .travis.yml

+ 46 - 0
.github/workflows/lint.yml

@@ -0,0 +1,46 @@
+name: Lint
+
+on:
+   push:
+      branches:
+         - "master"
+   pull_request:
+      branches:
+         - "*"
+
+jobs:
+   lint:
+      runs-on: ubuntu-latest
+      steps:
+         - name: Checkout
+           uses: actions/checkout@v2
+
+         - name: Setup PHP
+           uses: shivammathur/setup-php@v2
+           with:
+              php-version: "7.1"
+              extensions: intl, mbstring, mcrypt, openssl
+              tools: composer
+
+         - name: Setup problem matchers
+           run: |
+              echo "::add-matcher::${{ runner.tool_cache }}/php.json"
+
+         - name: Cache Composer packages
+           id: composer-cache
+           uses: actions/cache@v2
+           with:
+              path: vendor
+              key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
+              restore-keys: |
+                 ${{ runner.os }}-php-
+
+         - name: Install dependencies
+           if: steps.composer-cache.outputs.cache-hit != 'true'
+           run: composer install --prefer-dist --no-progress --no-suggest
+
+         - name: PHPCS check
+           uses: chekalsky/phpcs-action@v1
+           with:
+              enable_warnings: true
+              phpcs_bin_path: "./vendor/bin/phpcs"

+ 0 - 29
.travis.yml

@@ -1,29 +0,0 @@
-language: php
-
-php:
-   - '5.6'
-
-cache:
-  directories:
-    - $HOME/.composer/cache
-
-before_script:
-  - phpenv config-rm xdebug.ini
-  - composer install --optimize-autoloader
-
-script:
-  - ./vendor/bin/phpcs --colors -p
-
-before_deploy:
-  - php ./tools/make-release.php
-
-deploy:
-  provider: releases
-  api_key: $GITHUB_TOKEN
-  overwrite: true
-  file: 
-    - "singlesignon.tar.gz"
-    - "singlesignon.zip"
-  skip_cleanup: true
-  on:
-    tags: true