diff --git a/.gitattributes b/.gitattributes index a737db7..09d14ad 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,8 +3,8 @@ .gitignore export-ignore .idea export-ignore .php_cs export-ignore -.travis.yml export-ignore README.md export-ignore phpunit.xml export-ignore +/.github export-ignore /tests export-ignore /examples export-ignore \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d00c597 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,41 @@ +name: CI + +on: + push: + branches: [ master, dev ] + pull_request: + branches: [ master, dev ] + +jobs: + tests: + runs-on: ubuntu-latest + strategy: + matrix: + php: ['7.1', '7.2', '7.3', '7.4'] + name: PHP ${{ matrix.php }} tests + steps: + - uses: actions/checkout@v2 + # required for "git tag" presence for MonorepoBuilder split and ChangelogLinker git tags resolver; default is 1 + - run: git fetch --depth=100000 origin + # see https://github.com/shivammathur/setup-php + - uses: shivammathur/setup-php@v1 + with: + php-version: ${{ matrix.php }} + coverage: none + - run: composer install --no-progress + - run: composer phpstan + - run: composer phpunit + + tests_lowest_dependencies: + runs-on: ubuntu-16.04 + steps: + - uses: actions/checkout@v2 + - run: git fetch --depth=100000 origin + # see https://github.com/shivammathur/setup-php + - uses: shivammathur/setup-php@v1 + with: + php-version: 7.0 + coverage: none + - run: composer update --no-progress --prefer-lowest + - run: composer phpstan + - run: composer phpunit diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 652f4c4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: php -dist: trusty -cache: - directories: - - $HOME/.composer -sudo: false -matrix: - fast_finish: true - include: - - php: '7.0' - - php: '7.1' - - php: '7.2' - - php: '7.3' - - php: '7.4' -before_install: - # turn off XDebug - - phpenv config-rm xdebug.ini -install: - - composer install --no-progress --no-interaction --prefer-dist diff --git a/README.md b/README.md index 4ae8571..fabeb8c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/ddebin/mc-google-visualization.svg?branch=master)](https://travis-ci.org/ddebin/mc-google-visualization) +![Build Status](https://github.com/ddebin/mc-google-visualization/workflows/CI/badge.svg) # MC_Google_Visualization: Google Visualization datasource with your own database