Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 4fd73d7

Browse files
authored
Merge pull request #59 from spinen/develop
Fix badge URLs & GitHub Actions
2 parents 9ee60a9 + bbb9cb3 commit 4fd73d7

File tree

4 files changed

+54
-48
lines changed

4 files changed

+54
-48
lines changed

.gitattributes

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
* text=auto
2+
3+
/.github export-ignore
4+
/build export-ignore
5+
/tests export-ignore
6+
.gitattributes export-ignore
7+
.gitignore export-ignore
8+
nitpick.json export-ignore
9+
phpunit.xml.dist export-ignore

.github/workflows/ci.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
tests:
9+
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: true
14+
matrix:
15+
php: [7.2, 7.3, 7.4]
16+
stability: [prefer-lowest, prefer-stable]
17+
18+
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Cache dependencies
25+
uses: actions/cache@v1
26+
with:
27+
path: ~/.composer/cache
28+
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
29+
30+
- name: Setup PHP
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: ${{ matrix.php }}
34+
coverage: pcov
35+
36+
- name: Install dependencies
37+
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest
38+
39+
- name: Execute tests
40+
run: vendor/bin/phpunit --coverage-clover=coverage.clover --verbose
41+
42+
- name: Upload Code Coverage
43+
run: wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover

.travis.yml

-46
This file was deleted.

readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ PHPUnit mail assertions for testing email in Laravel.
1313

1414
| Branch | Status | Coverage | Code Quality |
1515
| ------ | :----: | :------: | :----------: |
16-
| Develop | [![Build Status](https://travis-ci.org/spinen/laravel-mail-assertions.svg?branch=develop)](https://travis-ci.org/spinen/laravel-mail-assertions) | [![Code Coverage](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/badges/coverage.png?b=develop)](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/?branch=develop) | [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/?branch=develop) |
17-
| Master | [![Build Status](https://travis-ci.org/spinen/laravel-mail-assertions.svg?branch=master)](https://travis-ci.org/spinen/laravel-mail-assertions) | [![Code Coverage](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/?branch=master) | [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/?branch=master) |
16+
| Develop | [![Build Status](https://github.com/spinen/laravel-mail-assertions/workflows/CI/badge.svg?branch=develop)](https://github.com/spinen/laravel-mail-assertions/workflows/CI/badge.svg?branch=develop) | [![Code Coverage](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/badges/coverage.png?b=develop)](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/?branch=develop) | [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/?branch=develop) |
17+
| Master | [![Build Status](https://github.com/spinen/laravel-mail-assertions/workflows/CI/badge.svg?branch=master)](https://github.com/spinen/laravel-mail-assertions/workflows/CI/badge.svg?branch=master) | [![Code Coverage](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/?branch=master) | [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/?branch=master) |
1818

1919
## Installation
2020

0 commit comments

Comments
 (0)