Skip to content

Commit

Permalink
switch to github actions (#44)
Browse files Browse the repository at this point in the history
* switch to github actions

* bump php-cs-fixer version

* remove 8.0 from matrix
  • Loading branch information
vyuldashev authored Dec 23, 2020
1 parent 5e5e58a commit b5c48ce
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 31 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests

on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
tests:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [7.1, 7.2, 7.3, 7.4]
stability: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip
coverage: none

- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

- name: Run PHP CS Fixer
run: composer test:style

- name: Execute tests
run: composer test:unit
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
alt="GitHub tag (latest SemVer)"
src="https://img.shields.io/github/tag/goldspecdigital/oooas.svg"
></a>
<a href="https://travis-ci.com/goldspecdigital/oooas"><img
<a href="https://github.com/goldspecdigital/oooas/actions"><img
alt="Build status"
src="https://travis-ci.com/goldspecdigital/oooas.svg?branch=master"
src="https://github.com/goldspecdigital/oooas/workflows/Tests/badge.svg"
></a>
<a href="https://packagist.org/packages/goldspecdigital/oooas"><img
alt="Packagist"
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"require-dev": {
"phpunit/phpunit": "^7.3",
"friendsofphp/php-cs-fixer": "^2.15",
"friendsofphp/php-cs-fixer": "^2.17",
"justinrainbow/json-schema": "^5.2"
},
"suggest": {
Expand Down

0 comments on commit b5c48ce

Please sign in to comment.