Skip to content

Commit

Permalink
Move from Travis to GH Actions, run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Grajo authored and Nevett committed Jun 30, 2021
1 parent 27c4ae3 commit 234d05a
Show file tree
Hide file tree
Showing 6 changed files with 667 additions and 366 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: php CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php_version: ['8.0','7.4','7.3']

steps:
- uses: actions/checkout@v2

- name: Setup PHP Action
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php_version }}

- name: Install composer
run: make install_composer

- name: Run tests
run: make ci
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ test: install_dependencies
vendor/bin/phpunit tests/
vendor/bin/phpcs tests/ src/Cronofy.php --standard=ruleset.xml

ci: test

check_dependencies:
@command -v jq >/dev/null || (echo "jq not installed please install via homebrew - 'brew install jq'"; exit 1)

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Cronofy

[Cronofy](https://www.cronofy.com) - one API for all the calendars (Google, iCloud, Exchange, Office 365, Outlook.com)
[![Build Status](https://travis-ci.org/cronofy/cronofy-php.svg?branch=master)](https://travis-ci.org/cronofy/cronofy-php)
[![php CI](https://github.com/cronofy/cronofy-php/actions/workflows/ci.yml/badge.svg)](https://github.com/cronofy/cronofy-php/actions/workflows/ci.yml)


## Sample Application

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "PHP wrapper for Cronofy's unified calendar API",
"version": "v1.4.0",
"require": {
"php": "^7.1"
"php": ">=7.1"
},
"autoload": {
"files": [
Expand All @@ -25,7 +25,7 @@
"minimum-stability": "beta",
"license": "MIT",
"require-dev": {
"phpunit/phpunit": "^5.7",
"phpunit/phpunit": "^8",
"squizlabs/php_codesniffer": "3.*"
}
}
Loading

0 comments on commit 234d05a

Please sign in to comment.