Skip to content

Commit bd2c604

Browse files
authored
Replace Travis by Github Actions (#7)
* 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 composer.json * Update main.yml
1 parent 419c382 commit bd2c604

File tree

4 files changed

+50
-32
lines changed

4 files changed

+50
-32
lines changed

.github/workflows/main.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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]
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: zip, pdo, sqlite
22+
coverage: none
23+
24+
- name: Checkout Laravel Sample
25+
uses: actions/checkout@v2
26+
with:
27+
repository: codeception/codeception-laravel5-sample
28+
path: framework-tests
29+
ref: codeception-3.0
30+
31+
- name: Install Laravel Sample
32+
run: |
33+
composer update --no-dev --prefer-dist --no-interaction
34+
cp .env.testing .env
35+
touch storage/testing.sqlite
36+
php artisan migrate --env=testing --database=sqlite_testing --force
37+
php artisan config:clear
38+
working-directory: framework-tests
39+
40+
- name: Validate composer.json and composer.lock
41+
run: composer validate
42+
43+
- name: Install dependencies
44+
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
45+
46+
- name: Run test suite
47+
run: |
48+
php vendor/bin/codecept build -c framework-tests
49+
php vendor/bin/codecept run functional -c framework-tests

.travis.yml

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

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
}
1515
],
1616
"minimum-stability": "RC",
17-
1817
"require": {
1918
"php": ">=5.6.0 <8.0",
2019
"codeception/lib-innerbrowser": "^1.0",

readme.md

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

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

55
## Installation
66

0 commit comments

Comments
 (0)