Skip to content

Commit 5ebf8ef

Browse files
authored
Replace Travis by Github Actions (#2)
* Create main.yml * Delete .travis.yml * Update readme.md * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update composer.json * Update main.yml
1 parent 0b19576 commit 5ebf8ef

File tree

4 files changed

+37
-24
lines changed

4 files changed

+37
-24
lines changed

.github/workflows/main.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
coverage: none
22+
23+
- name: Validate composer.json and composer.lock
24+
run: composer validate
25+
26+
- name: Install dependencies
27+
run: |
28+
composer require phpunit/phpunit "<=8.5.2" --no-update --ignore-platform-reqs
29+
composer install --prefer-dist --no-progress --no-interaction --no-suggest
30+
31+
- name: Run test suite
32+
run: |
33+
php -S 127.0.0.1:8000 -t tests/data/app >/dev/null 2>&1 &
34+
php -S 127.0.0.1:8010 -t tests/data/rest >/dev/null 2>&1 &
35+
php vendor/bin/codecept run

.travis.yml

-21
This file was deleted.

composer.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@
1414
}
1515
],
1616
"minimum-stability": "RC",
17-
1817
"require": {
1918
"php": ">=5.6.0 <8.0",
2019
"guzzlehttp/guzzle": "^6.3.0",
2120
"codeception/lib-innerbrowser": "^1.0",
22-
"codeception/codeception": "*@dev"
21+
"codeception/codeception": "^4.0"
2322
},
2423
"require-dev": {
2524
"codeception/util-robohelpers": "dev-master",

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Codeception module for testing web application over HTTP
44

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

77
## Installation
88

0 commit comments

Comments
 (0)