Skip to content

Commit 2f594d9

Browse files
committed
switch to github actions
1 parent d92cf4d commit 2f594d9

File tree

2 files changed

+49
-28
lines changed

2 files changed

+49
-28
lines changed

.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.2, 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 & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)