Skip to content

Commit 3155ecd

Browse files
Migrate to github actions
1 parent 7d71734 commit 3155ecd

File tree

3 files changed

+36
-27
lines changed

3 files changed

+36
-27
lines changed

.github/workflows/tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: run-tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [ubuntu-latest]
12+
php: [8.1]
13+
dependency-version: [prefer-stable]
14+
15+
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v2
20+
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
extensions: dom, curl, libxml, mbstring, zip, pcntl
26+
ini-values: error_reporting=E_ALL
27+
coverage: none
28+
29+
- name: Install dependencies
30+
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
31+
32+
- name: Execute tests
33+
run: vendor/bin/phpunit

.travis.yml

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

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
![Laravel SMS](https://banners.beyondco.de/laravel-sms.png?theme=light&packageName=linkstreet%2Flaravel-sms&pattern=architect&style=style_1&description=SMS+sent+easy&md=1&showWatermark=1&fontSize=100px&images=annotation)
22

33

4-
[![Build Status][ico-travis]][link-travis]
5-
[![Code Coverage][ico-codecov]][link-codecov]
4+
[![Build Status][ico-github-actions]][link-github-actions]
65
[![Latest Version on Packagist][ico-version]][link-packagist]
76
[![Total Downloads][ico-downloads]][link-downloads]
87
[![Software License][ico-license]](LICENSE)
@@ -46,14 +45,12 @@ Then run composer update in your terminal to pull the package.
4645

4746
The MIT License (MIT). Please see [License File](LICENSE) for more information.
4847

49-
[ico-travis]: https://travis-ci.org/linkstreet/laravel-sms.svg?branch=master
50-
[ico-codecov]: https://codecov.io/github/linkstreet/laravel-sms/coverage.svg?branch=master
48+
[ico-github-actions]: https://github.com/linkstreet/laravel-sms/actions/workflows/tests.yml/badge.svg
5149
[ico-version]: https://poser.pugx.org/linkstreet/laravel-sms/v/stable
5250
[ico-downloads]: https://poser.pugx.org/linkstreet/laravel-sms/downloads
5351
[ico-license]: https://poser.pugx.org/linkstreet/laravel-sms/license
5452

55-
[link-travis]: https://travis-ci.org/linkstreet/laravel-sms
56-
[link-codecov]: https://codecov.io/github/linkstreet/laravel-sms?branch=master
53+
[link-github-actions]: https://github.com/linkstreet/laravel-sms/actions/workflows/tests.yml
5754
[link-packagist]: https://packagist.org/packages/linkstreet/laravel-sms
5855
[link-downloads]: https://packagist.org/packages/linkstreet/laravel-sms
5956
[link-license]: LICENSE

0 commit comments

Comments
 (0)