Skip to content

Commit

Permalink
add github action CI for syncroton (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccheng-dev authored Sep 20, 2021
1 parent c131bf2 commit 8d91ce9
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/php-unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: PHP unit test CI

on:
push:
branches:
- master
pull_request:
branches:
- master

defaults:
run:
shell: pwsh

jobs:

test:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-18.04]
php-versions: ['7.1', '7.4', '8.0']

name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Composer install
run: composer install

- name: Unit tests
run: |
ls -al
cd tests
ls -al
../vendor/bin/phpunit --color
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.com/tine20/syncroton.svg?branch=master)](https://travis-ci.com/tine20/syncroton)
[![Build Status](https://github.com/tine20/zendframework1/actions/workflows/php-unit-test.yml/badge.svg)]

# Syncroton

Expand Down

0 comments on commit 8d91ce9

Please sign in to comment.