Skip to content

Commit

Permalink
Use GitHub Actions instead of Travis (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Jan 4, 2021
1 parent 0622656 commit 89becdd
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 22 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PHPUnit for Saber

on: [push, pull_request, workflow_dispatch]

jobs:
ci:
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os: [ubuntu-latest]
max-parallel: 4
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Services
run: |
docker-compose -v
docker -v
ls -al
pwd
mkdir data
mkdir data/mysql
mkdir data/redis
chmod -R 777 data
docker-compose -f .travis-dc.yml up -d
- name: Run Test Cases
run: |
docker run --rm -v `pwd`:/app:rw -w /app --name="test" phpswoole/swoole:php7.4 composer install-test
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README-EN.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Saber

[![Latest Version](https://img.shields.io/github/release/swlib/saber.svg?style=flat-square)](https://github.com/swlib/saber/releases)
[![Build Status](https://travis-ci.org/swlib/saber.svg?branch=master)](https://travis-ci.org/swlib/saber)
[![PHPUnit for Saber](https://github.com/swlib/saber/workflows/PHPUnit%20for%20Saber/badge.svg)](https://github.com/swlib/saber/actions)
[![Php Version](https://img.shields.io/badge/php-%3E=7.1-brightgreen.svg?maxAge=2592000)](https://secure.php.net/)
[![Swoole Version](https://img.shields.io/badge/swoole-%3E=2.1.2-brightgreen.svg?maxAge=2592000)](https://github.com/swoole/swoole-src)
[![Saber License](https://img.shields.io/hexpm/l/plug.svg?maxAge=2592000)](https://github.com/swlib/saber/blob/master/LICENSE)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Saber

[![Latest Version](https://img.shields.io/github/release/swlib/saber.svg?style=flat-square)](https://github.com/swlib/saber/releases)
[![Build Status](https://travis-ci.org/swlib/saber.svg?branch=master)](https://travis-ci.org/swlib/saber)
[![PHPUnit for Saber](https://github.com/swlib/saber/workflows/PHPUnit%20for%20Saber/badge.svg)](https://github.com/swlib/saber/actions)
[![Php Version](https://img.shields.io/badge/php-%3E=7.1-brightgreen.svg?maxAge=2592000)](https://secure.php.net/)
[![Swoole Version](https://img.shields.io/badge/swoole-%3E=2.1.2-brightgreen.svg?maxAge=2592000)](https://github.com/swoole/swoole-src)
[![Saber License](https://img.shields.io/hexpm/l/plug.svg?maxAge=2592000)](https://github.com/swlib/saber/blob/master/LICENSE)
Expand Down

0 comments on commit 89becdd

Please sign in to comment.