Skip to content

Commit c57e250

Browse files
Merge pull request #34 from ConvertAPI/feature/github-actions
Replace Travis with GitHub actions
2 parents 059a4d3 + 69ba18f commit c57e250

File tree

3 files changed

+24
-15
lines changed

3 files changed

+24
-15
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
on: [push,pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
php-version:
9+
- '5.6'
10+
- '7.0'
11+
- '7.4'
12+
name: PHP ${{ matrix.php-version }} sample
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: shivammathur/setup-php@v2
16+
with:
17+
php-version: ${{ matrix.php-version }}
18+
- run: |
19+
curl -s http://getcomposer.org/installer | php
20+
php composer.phar install
21+
- env:
22+
CONVERT_API_SECRET: ${{ secrets.CONVERTAPI_SECRET }}
23+
run: bin/phpunit

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ConvertAPI PHP Client
22

33
[![PHP version](https://badge.fury.io/ph/convertapi%2Fconvertapi-php.svg)](https://packagist.org/packages/convertapi/convertapi-php)
4-
[![Build Status](https://secure.travis-ci.org/ConvertAPI/convertapi-php.svg)](http://travis-ci.org/ConvertAPI/convertapi-php)
4+
[![Build Status](https://github.com/ConvertAPI/convertapi-php/actions/workflows/main.yml/badge.svg)](https://github.com/ConvertAPI/convertapi-php/actions)
55

66
## Convert your files with our online file conversion API
77

0 commit comments

Comments
 (0)