Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHA Workflow instead of TravisCI #2

Merged
merged 3 commits into from
Jan 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on:
pull_request:
schedule:
- cron: "0 0 * * *"

concurrency:
group: ${{ github.head_ref || 'cron' }}
cancel-in-progress: true

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- '8.1'
- '8.0'
- '7.4'
- '7.3'
- '7.2'
- '7.1'
- '7.0'
- '5.6'

name: PHP ${{ matrix.php-version }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- name: Install Dependencies
run: composer require squizlabs/php_codesniffer phpmd/phpmd

- name: PHPUnit
run: vendor/bin/phpunit

- name: PHPCS
run: vendor/bin/phpcs --standard=PSR2 classes/ tests/

- name: PHPMD
run: vendor/bin/phpmd classes/ text cleancode,codesize,controversial,design,naming,unusedcode
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![.github/workflows/tests.yml](https://github.com/php-mock/php-mock-integration/actions/workflows/tests.yml/badge.svg)](https://github.com/php-mock/php-mock-integration/actions/workflows/tests.yml)

# PHP-Mock integration package

This is a support package for PHP-Mock integration into other frameworks.
Expand All @@ -9,7 +11,7 @@ You'll find these integrations:

- [php-mock/php-mock-prophecy](https://github.com/php-mock/php-mock-prophecy) - Prophecy (phpspec) integration

# License and authors
## License and authors

This project is free and under the WTFPL.
Responsable for this project is Markus Malkusch [email protected].
Expand All @@ -18,5 +20,3 @@ Responsable for this project is Markus Malkusch [email protected].

If you like PHP-Mock and feel generous donate a few Bitcoins here:
[1335STSwu9hST4vcMRppEPgENMHD2r1REK](bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK)

[![Build Status](https://travis-ci.org/php-mock/php-mock-integration.svg?branch=master)](https://travis-ci.org/php-mock/php-mock-integration)