Skip to content

Commit 5934f8e

Browse files
authored
Replace Travis by Github Actions (#6)
* 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
1 parent b702b42 commit 5934f8e

File tree

4 files changed

+49
-33
lines changed

4 files changed

+49
-33
lines changed

.github/workflows/main.yml

+47
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: [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, imagick
22+
coverage: none
23+
24+
- name: Validate composer.json and composer.lock
25+
run: composer validate
26+
27+
- name: Install dependencies
28+
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
29+
30+
- name: Checkout Yii2
31+
uses: actions/checkout@v2
32+
with:
33+
repository: Codeception/yii2-tests
34+
path: framework-tests
35+
36+
- name: Install Yii2
37+
run: |
38+
composer require --no-update codeception/module-asserts
39+
composer require --no-update codeception/module-filesystem
40+
composer require --no-update codeception/codeception
41+
composer update --no-dev --prefer-dist --no-interaction
42+
working-directory: framework-tests
43+
44+
- name: Run test suite
45+
run: |
46+
php vendor/bin/codecept build -c framework-tests
47+
php vendor/bin/codecept run -c framework-tests

.travis.yml

-30
This file was deleted.

composer.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717
}
1818
],
1919
"minimum-stability": "RC",
20-
2120
"require": {
2221
"php": ">=5.6.0 <8.0",
2322
"codeception/lib-innerbrowser": "^1.0",
24-
"codeception/codeception": "4.0.x-dev | ^4.0"
23+
"codeception/codeception": "^4.0"
2524
},
2625
"require-dev": {
2726
"codeception/util-robohelpers": "dev-master"

readme.md

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

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

55
## Installation
66

0 commit comments

Comments
 (0)