Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
php: [5.6, 7.0, 7.1]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we extend this to 7.3 & 7.4?
or we need a new sample app for this?


steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: zip, pdo, sqlite
coverage: none

- name: Checkout Laravel Sample
uses: actions/checkout@v2
with:
repository: codeception/codeception-laravel5-sample
path: framework-tests
ref: codeception-3.0

- name: Install Laravel Sample
run: |
composer update --no-dev --prefer-dist --no-interaction
cp .env.testing .env
touch storage/testing.sqlite
php artisan migrate --env=testing --database=sqlite_testing --force
php artisan config:clear
working-directory: framework-tests

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest

- name: Run test suite
run: |
php vendor/bin/codecept build -c framework-tests
php vendor/bin/codecept run functional -c framework-tests
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
}
],
"minimum-stability": "RC",

"require": {
"php": ">=5.6.0 <8.0",
"codeception/lib-innerbrowser": "^1.0",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Codeception module for Laravel 5 framework

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

## Installation

Expand Down