Skip to content

Commit

Permalink
Replace Travis by Github Actions (#8)
Browse files Browse the repository at this point in the history
* Create main.yml

* Delete .travis.yml

* Update readme.md

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update composer.json

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml
  • Loading branch information
eXorus committed May 7, 2020
1 parent ceae4f9 commit 0ff3e7e
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 22 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4]

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: pdo, sqlite
coverage: none

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: |
composer require phpunit/phpunit "<=8.5.2" --no-update --ignore-platform-reqs
composer install --prefer-dist --no-progress --no-interaction --no-suggest
- name: Run test suite
run: php vendor/bin/codecept run
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
}
],
"minimum-stability": "RC",

"require": {
"php": ">=5.6.0 <8.0",
"codeception/codeception": "4.0.x-dev | ^4.0"
"codeception/codeception": "^4.0"
},
"require-dev": {
"codeception/util-robohelpers": "dev-master",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Doctrine2 module for Codeception

[![Build Status](https://travis-ci.org/Codeception/module-doctrine2.svg?branch=master)](https://travis-ci.org/Codeception/module-doctrine2)
![Build Status](https://github.com/Codeception/module-doctrine2/workflows/CI/badge.svg)

## Installation

Expand Down

0 comments on commit 0ff3e7e

Please sign in to comment.