Skip to content

Commit a87f20b

Browse files
authored
Switch to Github Actions (vyuldashev#383)
* Switch to Github Actions * Skip PHP 8 builds for now * Remove PHP 8 builds * Bump illuminate/queue * bump php cs fixer
1 parent a63f61a commit a87f20b

File tree

5 files changed

+51
-30
lines changed

5 files changed

+51
-30
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
.gitattributes export-ignore
77
.gitignore export-ignore
88
.styleci.yml export-ignore
9-
.travis.yml export-ignore
109
.php_cs.dist export-ignore
1110
CHANGELOG-* export-ignore
1211
CODE_OF_CONDUCT.md export-ignore

.github/workflows/tests.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
php: [7.3, 7.4]
17+
stability: [prefer-lowest, prefer-stable]
18+
19+
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v2
24+
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php }}
29+
extensions: dom, curl, libxml, mbstring, zip
30+
coverage: none
31+
32+
- name: Set up Docker
33+
run: |
34+
sudo rm /usr/local/bin/docker-compose
35+
curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname -s`-`uname -m` > docker-compose
36+
chmod +x docker-compose
37+
sudo mv docker-compose /usr/local/bin
38+
39+
- name: Start Docker container
40+
run: docker-compose up -d rabbitmq
41+
42+
- name: Install dependencies
43+
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
44+
45+
- name: Run PHP CS Fixer
46+
run: vendor/bin/php-cs-fixer fix --config=.php_cs.dist --allow-risky=yes --dry-run --diff --verbose
47+
48+
- name: Execute tests
49+
run: vendor/bin/phpunit --verbose

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
RabbitMQ Queue driver for Laravel
22
======================
33
[![Latest Stable Version](https://poser.pugx.org/vladimir-yuldashev/laravel-queue-rabbitmq/v/stable?format=flat-square)](https://packagist.org/packages/vladimir-yuldashev/laravel-queue-rabbitmq)
4-
[![Build Status](https://img.shields.io/travis/vyuldashev/laravel-queue-rabbitmq.svg?style=flat-square)](https://travis-ci.org/vyuldashev/laravel-queue-rabbitmq)
4+
[![Build Status](https://github.com/vyuldashev/laravel-queue-rabbitmq/workflows/Tests/badge.svg)](https://github.com/vyuldashev/laravel-queue-rabbitmq/actions)
55
[![Total Downloads](https://poser.pugx.org/vladimir-yuldashev/laravel-queue-rabbitmq/downloads?format=flat-square)](https://packagist.org/packages/vladimir-yuldashev/laravel-queue-rabbitmq)
66
[![StyleCI](https://styleci.io/repos/14976752/shield)](https://styleci.io/repos/14976752)
77
[![License](https://poser.pugx.org/vladimir-yuldashev/laravel-queue-rabbitmq/license?format=flat-square)](https://packagist.org/packages/vladimir-yuldashev/laravel-queue-rabbitmq)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"phpunit/phpunit": "^9.3",
1919
"mockery/mockery": "^1.0",
2020
"laravel/horizon": "^5.0",
21-
"friendsofphp/php-cs-fixer": "^2.16",
21+
"friendsofphp/php-cs-fixer": "^2.17",
2222
"orchestra/testbench": "^6.0"
2323
},
2424
"autoload": {

0 commit comments

Comments
 (0)