Skip to content

Commit

Permalink
Run tests on Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hedii committed Dec 14, 2020
1 parent c3c62aa commit 88a1e4f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build
on: [ push, pull_request ]
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '7.3', '7.4', '8.0' ]
name: Testing on PHP ${{ matrix.php-versions }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring,bcmath
tools: phpunit,composer
- name: Install dependencies
run: composer install --quiet --no-ansi --no-interaction --no-scripts --no-progress
- name: Run tests
run: composer test
10 changes: 0 additions & 10 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,4 +1,4 @@
[![Build Status](https://travis-ci.org/hedii/colissimo-api.svg?branch=master)](https://travis-ci.org/hedii/colissimo-api)
[![Build Status](https://github.com/hedii/colissimo-api/workflows/Build/badge.svg)](https://github.com/hedii/colissimo-api/actions)

# colissimo-api
A php package to track Colissimo (La Poste) parcels
Expand Down

0 comments on commit 88a1e4f

Please sign in to comment.