Skip to content

Commit 88a1e4f

Browse files
committed
Run tests on Github Actions
1 parent c3c62aa commit 88a1e4f

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build
2+
on: [ push, pull_request ]
3+
jobs:
4+
run:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
php-versions: [ '7.3', '7.4', '8.0' ]
9+
name: Testing on PHP ${{ matrix.php-versions }}
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Setup PHP
14+
uses: shivammathur/setup-php@v2
15+
with:
16+
php-version: ${{ matrix.php-versions }}
17+
extensions: mbstring,bcmath
18+
tools: phpunit,composer
19+
- name: Install dependencies
20+
run: composer install --quiet --no-ansi --no-interaction --no-scripts --no-progress
21+
- name: Run tests
22+
run: composer test

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/hedii/colissimo-api.svg?branch=master)](https://travis-ci.org/hedii/colissimo-api)
1+
[![Build Status](https://github.com/hedii/colissimo-api/workflows/Build/badge.svg)](https://github.com/hedii/colissimo-api/actions)
22

33
# colissimo-api
44
A php package to track Colissimo (La Poste) parcels

0 commit comments

Comments
 (0)