8000 Replace Travis with GitHub actions by laurynas-convertapi · Pull Request #34 · ConvertAPI/convertapi-library-php · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build
on: [push,pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- '5.6'
- '7.0'
- '7.4'
name: PHP ${{ matrix.php-version }} sample
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- run: |
curl -s http://getcomposer.org/installer | php
php composer.phar install
- env:
CONVERT_API_SECRET: ${{ secrets.CONVERTAPI_SECRET }}
run: bin/phpunit
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

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

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

## Convert your files with our online file conversion API

Expand Down
0