Skip to content

Commit 0ff3e7e

Browse files
authored
Replace Travis by Github Actions (#8)
* 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
1 parent ceae4f9 commit 0ff3e7e

File tree

4 files changed

+35
-22
lines changed

4 files changed

+35
-22
lines changed

.github/workflows/main.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.php }}
21+
extensions: pdo, sqlite
22+
coverage: none
23+
24+
- name: Validate composer.json and composer.lock
25+
run: composer validate
26+
27+
- name: Install dependencies
28+
run: |
29+
composer require phpunit/phpunit "<=8.5.2" --no-update --ignore-platform-reqs
30+
composer install --prefer-dist --no-progress --no-interaction --no-suggest
31+
32+
- name: Run test suite
33+
run: php vendor/bin/codecept run

.travis.yml

-19
This file was deleted.

composer.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
}
1515
],
1616
"minimum-stability": "RC",
17-
1817
"require": {
1918
"php": ">=5.6.0 <8.0",
20-
"codeception/codeception": "4.0.x-dev | ^4.0"
19+
"codeception/codeception": "^4.0"
2120
},
2221
"require-dev": {
2322
"codeception/util-robohelpers": "dev-master",

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Doctrine2 module for Codeception
22

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

55
## Installation
66

0 commit comments

Comments
 (0)