Skip to content

Commit 77e6e84

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 main.yml * Update composer.json * Update main.yml
1 parent e20039c commit 77e6e84

File tree

4 files changed

+38
-25
lines changed

4 files changed

+38
-25
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
9+
services:
10+
redis:
11+
image: redis
12+
ports:
13+
- 6379:6379
14+
15+
strategy:
16+
matrix:
17+
php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php }}
27+
coverage: none
28+
29+
- name: Validate composer.json and composer.lock
30+
run: composer validate
31+
32+
- name: Install dependencies
33+
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
34+
35+
- name: Run test suite
36+
run: php vendor/bin/codecept run

.travis.yml

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

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
}
1515
],
1616
"minimum-stability": "RC",
17-
1817
"require": {
1918
"php": ">=5.6.0 <8.0",
2019
"predis/predis": "^1.0",
21-
"codeception/codeception": "4.0.x-dev | ^4.0"
20+
"codeception/codeception": "^4.0"
2221
},
2322
"require-dev": {
2423
"codeception/util-robohelpers": "dev-master"

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Redis module for Codeception
22

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

55
## Installation
66

0 commit comments

Comments
 (0)