Skip to content

Commit e7ebe1e

Browse files
committed
Bye travis, hello actions
1 parent 6bfcc70 commit e7ebe1e

File tree

3 files changed

+348
-254
lines changed

3 files changed

+348
-254
lines changed

.github/workflows/main.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
test:
10+
strategy:
11+
matrix:
12+
php-versions: ['7.1', '7.2', '7.3', '7.4']
13+
runs-on: ubuntu-latest
14+
name: PHP ${{ matrix.php-versions }} Tests
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v1
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v1
21+
with:
22+
php-version: ${{ matrix.php-versions }}
23+
extension-csv: bcmath, mbstring
24+
coverage: xdebug
25+
26+
- name: Check PHP Version
27+
run: php -v
28+
29+
- name: Check Composer Version
30+
run: composer -V
31+
32+
- name: Install Dependencies
33+
run: composer install --prefer-dist
34+
35+
- name: Tests
36+
run: composer phpunit
37+
38+
- name: Building artifacts
39+
run: |
40+
composer phpcs || true
41+
composer phploc || true
42+
composer phpcpd || true
43+
composer phpmd || true
44+
45+
- name: Archive build artifacts
46+
uses: actions/upload-artifact@v1
47+
with:
48+
name: build
49+
path: build

.travis.yml

-12
This file was deleted.

0 commit comments

Comments
 (0)