Skip to content

Commit 3eef968

Browse files
committed
Add Github actions.
1 parent 6fc21e9 commit 3eef968

File tree

4 files changed

+43
-21
lines changed

4 files changed

+43
-21
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
.gitignore export-ignore
44
.idea export-ignore
55
.php_cs export-ignore
6-
.travis.yml export-ignore
76
README.md export-ignore
87
phpunit.xml export-ignore
8+
/.github export-ignore
99
/tests export-ignore
1010
/examples export-ignore

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master, dev ]
6+
pull_request:
7+
branches: [ master, dev ]
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
php: ['7.1', '7.2', '7.3', '7.4']
15+
name: PHP ${{ matrix.php }} tests
16+
steps:
17+
- uses: actions/checkout@v2
18+
# required for "git tag" presence for MonorepoBuilder split and ChangelogLinker git tags resolver; default is 1
19+
- run: git fetch --depth=100000 origin
20+
# see https://github.com/shivammathur/setup-php
21+
- uses: shivammathur/setup-php@v1
22+
with:
23+
php-version: ${{ matrix.php }}
24+
coverage: none
25+
- run: composer install --no-progress
26+
- run: composer phpstan
27+
- run: composer phpunit
28+
29+
tests_lowest_dependencies:
30+
runs-on: ubuntu-16.04
31+
steps:
32+
- uses: actions/checkout@v2
33+
- run: git fetch --depth=100000 origin
34+
# see https://github.com/shivammathur/setup-php
35+
- uses: shivammathur/setup-php@v1
36+
with:
37+
php-version: 7.0
38+
coverage: none
39+
- run: composer update --no-progress --prefer-lowest
40+
- run: composer phpstan
41+
- run: composer phpunit

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/ddebin/mc-google-visualization.svg?branch=master)](https://travis-ci.org/ddebin/mc-google-visualization)
1+
![Build Status](https://github.com/ddebin/mc-google-visualization/workflows/CI/badge.svg)
22

33
# MC_Google_Visualization: Google Visualization datasource with your own database
44

0 commit comments

Comments
 (0)