Skip to content

Commit 446f111

Browse files
authored
Merge pull request #62 from cloudblue/move-to-github-actions
Added GitHub workflows
2 parents 6f86758 + 7645f54 commit 446f111

File tree

3 files changed

+47
-21
lines changed

3 files changed

+47
-21
lines changed

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build Connect PHP SDK
2+
3+
on:
4+
push:
5+
branches: "*"
6+
tags:
7+
- '*'
8+
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
php-versions: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
18+
name: PHP ${{ matrix.php-versions }} build and test
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php-versions }}
27+
extensions: mbstring, intl, pcov, gd, zip, curl, json
28+
ini-values: post_max_size=256M, short_open_tag=On
29+
tools: pecl, composer, phpunit:v5.7
30+
- name: Setup dependencies
31+
run: |
32+
composer install
33+
- name: Run tests
34+
run: |
35+
phpunit --coverage-clover=coverage-report.clover --log-junit=test-report.xml
36+
- name: Upload coverage
37+
uses: codecov/codecov-action@v1
38+
with:
39+
file: ./test-report.xml
40+
fail_ci_if_error: true
41+
verbose: true
42+
- name: SonarCloud
43+
uses: SonarSource/sonarcloud-github-action@master
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.travis.yml

Lines changed: 0 additions & 20 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
# Connect PHP SDK
22

3-
[![Build Status](https://travis-ci.org/cloudblue/connect-php-sdk.svg?branch=master)](https://travis-ci.org/cloudblue/connect-php-sdk) [![Latest Stable Version](https://poser.pugx.org/apsconnect/connect-sdk/v/stable)](https://packagist.org/packages/apsconnect/connect-sdk) [![License](https://poser.pugx.org/apsconnect/connect-sdk/license)](https://packagist.org/packages/apsconnect/connect-sdk) [![codecov](https://codecov.io/gh/cloudblue/connect-php-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/cloudblue/connect-php-sdk)
3+
[![Build Status](https://github.com/cloudblue/connect-php-sdk/workflows/Build%20Connect%20PHP%20SDK/badge.svg)](https://github.com/cloudblue/connect-php-sdk/actions) [![Latest Stable Version](https://poser.pugx.org/apsconnect/connect-sdk/v/stable)](https://packagist.org/packages/apsconnect/connect-sdk) [![License](https://poser.pugx.org/apsconnect/connect-sdk/license)](https://packagist.org/packages/apsconnect/connect-sdk) [![codecov](https://codecov.io/gh/cloudblue/connect-php-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/cloudblue/connect-php-sdk)
44
[![PHP Version](https://img.shields.io/packagist/php-v/apsconnect/connect-sdk.svg?style=flat&branch=master)](https://packagist.org/packages/apsconnect/connect-sdk) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=connectphpsdk&metric=alert_status)](https://sonarcloud.io/dashboard?id=connectphpsdk)
55

66
## Getting Started

0 commit comments

Comments
 (0)