Skip to content

Commit ba4d287

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 * Delete tests.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml
1 parent 3d18c5c commit ba4d287

File tree

4 files changed

+48
-81
lines changed

4 files changed

+48
-81
lines changed

.github/workflows/main.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+
services:
10+
mysql:
11+
image: mysql:5.7
12+
env:
13+
MYSQL_ROOT_PASSWORD: password
14+
MYSQL_DATABASE: phalcon
15+
ports:
16+
- 3306:3306
17+
options: >-
18+
--health-cmd "mysqladmin ping"
19+
--health-interval 10s
20+
--health-timeout 5s
21+
--health-retries 5
22+
strategy:
23+
matrix:
24+
php: [7.2, 7.3, 7.4]
25+
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v2
29+
30+
- name: Setup PHP
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: ${{ matrix.php }}
34+
extensions: phalcon4, pdo, mysql
35+
coverage: none
36+
37+
- name: Validate composer.json and composer.lock
38+
run: composer validate
39+
40+
- name: Install dependencies
41+
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
42+
43+
- name: Run test suite
44+
run: |
45+
php -r "file_exists('.env') || copy('.env.example', '.env');"
46+
php vendor/bin/codecept build
47+
php vendor/bin/codecept run unit

.github/workflows/tests.yml

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

.travis.yml

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

readme.md

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

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

55
## Installation
66

0 commit comments

Comments
 (0)