Skip to content

Commit beff446

Browse files
committed
Replace Travis CI tests with Github action
1 parent 2261827 commit beff446

File tree

3 files changed

+36
-22
lines changed

3 files changed

+36
-22
lines changed

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
php-version: ['8.0', '8.1', '8.2']
12+
composer-flags: ["--prefer-lowest", ""]
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php-version }}
22+
coverage: pcov
23+
24+
- name: Install dependencies
25+
run: |
26+
composer self-update
27+
composer update ${{ matrix.composer-flags }} --no-interaction --prefer-source
28+
29+
- name: Run tests
30+
run: ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
31+
32+
- name: Upload coverage to Scrutinizer
33+
run: |
34+
wget https://scrutinizer-ci.com/ocular.phar
35+
php ocular.phar code-coverage:upload --format=php-clover coverage.clover

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/laravel-notification-channels/pushover.svg?style=flat-square)](https://packagist.org/packages/laravel-notification-channels/pushover)
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
5-
[![Build Status](https://img.shields.io/travis/laravel-notification-channels/pushover/master.svg?style=flat-square)](https://travis-ci.org/laravel-notification-channels/pushover)
5+
[![Build Status](https://img.shields.io/github/actions/workflow/status/laravel-notification-channels/pushover/tests.yml?style=flat-square)](https://github.com/laravel-notification-channels/pushover/actions)
66
[![StyleCI](https://styleci.io/repos/65543497/shield)](https://styleci.io/repos/65543497)
77
[![Quality Score](https://img.shields.io/scrutinizer/g/laravel-notification-channels/pushover.svg?style=flat-square)](https://scrutinizer-ci.com/g/laravel-notification-channels/pushover)
88
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/laravel-notification-channels/pushover/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/laravel-notification-channels/pushover/?branch=master)

0 commit comments

Comments
 (0)