Skip to content

Commit 9e3995e

Browse files
Move to GitHub Actions (#37)
1 parent 5ba42ba commit 9e3995e

File tree

3 files changed

+45
-19
lines changed

3 files changed

+45
-19
lines changed

.github/workflows/tests.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
tests:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
php: [7.2, 7.3, 7.4]
17+
laravel: [^6.0, ^7.0, ^8.0]
18+
exclude:
19+
- php: 7.2
20+
laravel: ^8.0
21+
22+
name: Test with PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v2
27+
28+
- name: Setup PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php }}
32+
extensions: dom, curl, libxml, mbstring, zip
33+
tools: composer:v2
34+
coverage: none
35+
36+
- name: Install dependencies
37+
run: |
38+
composer require "illuminate/contracts=${{ matrix.laravel }}" --no-update
39+
composer require "illuminate/database=${{ matrix.laravel }}" --no-update
40+
composer require "illuminate/support=${{ matrix.laravel }}" --no-update
41+
composer update --prefer-dist --no-interaction --no-progress
42+
43+
- name: Run tests
44+
run: vendor/bin/phpunit --verbose

.travis.yml

Lines changed: 0 additions & 18 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/pmatseykanets/laravel-scout-postgres.svg?style=flat-square)](https://packagist.org/packages/pmatseykanets/laravel-scout-postgres)
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/pmatseykanets/laravel-scout-postgres/master.svg?style=flat-square)](https://travis-ci.org/pmatseykanets/laravel-scout-postgres)
5+
![tests](https://github.com/pmatseykanets/laravel-scout-postgres/workflows/tests/badge.svg)
66
[![StyleCI](https://styleci.io/repos/67233265/shield)](https://styleci.io/repos/67233265)
77
[![Total Downloads](https://img.shields.io/packagist/dt/pmatseykanets/laravel-scout-postgres.svg?style=flat-square)](https://packagist.org/packages/pmatseykanets/laravel-scout-postgres)
88
[![License](https://poser.pugx.org/pmatseykanets/laravel-scout-postgres/license)](https://github.com/pmatseykanets/laravel-scout-postgres/blob/master/LICENSE.md)

0 commit comments

Comments
 (0)