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

Commit af2196f

Browse files
authored
Merge pull request #87 from Codeception/6.5-github-actions
Use Github actions in 6.5 branch
2 parents 372f1b5 + 788bad9 commit af2196f

File tree

3 files changed

+52
-29
lines changed

3 files changed

+52
-29
lines changed

.github/workflows/build.yml

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