Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit d45d746

Browse files
authored
Merge pull request #86 from Codeception/7.1-github-actions
Use GitHub actions in 7.1 branch
2 parents bc6f37d + b421797 commit d45d746

File tree

3 files changed

+51
-29
lines changed

3 files changed

+51
-29
lines changed

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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: [7.1, 7.2, 7.3]
12+
13+
env:
14+
CODECEPTION_VERSION: '3.0.x-dev'
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
coverage: xdebug
25+
26+
- name: Prepare dependencies
27+
run: |
28+
wget https://github.com/consolidation/Robo/releases/download/1.4.12/robo.phar
29+
php robo.phar prepare
30+
composer update
31+
32+
- name: Run test suite
33+
run: |
34+
php robo.phar test cli
35+
php robo.phar test "unit -g core"
36+
php robo.phar test "tests/unit/Codeception/Constraints/"
37+
php robo.phar test "tests/unit/Codeception/Module/AssertsTest.php"
38+
39+
- name: run tests with 2.5 branch
40+
run: |
41+
CODECEPTION_VERSION=2.5.x-dev php robo.phar prepare
42+
composer update
43+
php robo.phar test cli
44+
php robo.phar test "unit -g core"
45+
php robo.phar test "tests/unit/Codeception/Constraints/"
46+
php robo.phar test "tests/unit/Codeception/Module/AssertsTest.php"

.travis.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
Builds:
44

5-
* 6.0 [![Build Status](https://travis-ci.org/Codeception/phpunit-wrapper.svg?branch=6.0)](https://travis-ci.org/Codeception/phpunit-wrapper)
6-
* 7.0 [![Build Status](https://travis-ci.org/Codeception/phpunit-wrapper.svg?branch=7.0)](https://travis-ci.org/Codeception/phpunit-wrapper)
5+
* 9.0 ![Build Status](https://github.com/Codeception/phpunit-wrapper/workflows/CI/badge.svg?branch=9.0)
6+
* 8.0 ![Build Status](https://github.com/Codeception/phpunit-wrapper/workflows/CI/badge.svg?branch=8.0)
7+
* 7.1 ![Build Status](https://github.com/Codeception/phpunit-wrapper/workflows/CI/badge.svg?branch=7.1)
8+
* 6.5 ![Build Status](https://github.com/Codeception/phpunit-wrapper/workflows/CI/badge.svg?branch=6.5)
9+
* 6.0 ![Build Status](https://github.com/Codeception/phpunit-wrapper/workflows/CI/badge.svg?branch=6.0)
710

811
Codeception heavily relies on PHPUnit for running and managing tests.
912
Not all PHPUnit classes fit the needs of Codeception, that's why they were extended or redefined.

0 commit comments

Comments
 (0)