Skip to content

Commit

Permalink
Add Github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddebin committed Aug 20, 2020
1 parent 6fc21e9 commit 3eef968
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -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
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 3eef968

Please sign in to comment.