Skip to content

Commit bccb0a1

Browse files
Merge pull request #43 from franmomu/ci
Move travis to Github Actions
2 parents 1a78e35 + a464472 commit bccb0a1

File tree

2 files changed

+71
-12
lines changed

2 files changed

+71
-12
lines changed

.github/workflows/build.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
push:
7+
branches:
8+
9+
jobs:
10+
coding-standards:
11+
name: "Coding Standards"
12+
runs-on: "ubuntu-20.04"
13+
14+
strategy:
15+
matrix:
16+
php-version:
17+
- "7.4"
18+
19+
steps:
20+
- name: "Checkout"
21+
uses: "actions/checkout@v2"
22+
23+
- name: "Install PHP"
24+
uses: "shivammathur/setup-php@v2"
25+
with:
26+
coverage: "none"
27+
php-version: "${{ matrix.php-version }}"
28+
tools: "cs2pr"
29+
30+
- name: "Install dependencies with Composer"
31+
uses: "ramsey/composer-install@v1"
32+
33+
- name: "Run PHP_CodeSniffer"
34+
run: "vendor/bin/phpcs -n -s --report=checkstyle | cs2pr"
35+
36+
tests:
37+
name: "Tests"
38+
runs-on: "ubuntu-20.04"
39+
40+
strategy:
41+
matrix:
42+
php-version:
43+
- "7.3"
44+
- "7.4"
45+
- "8.0"
46+
- "8.1"
47+
dependencies:
48+
- "highest"
49+
include:
50+
- dependencies: "lowest"
51+
php-version: "7.3"
52+
53+
steps:
54+
- name: "Checkout"
55+
uses: "actions/checkout@v2"
56+
57+
- name: "Install PHP"
58+
uses: "shivammathur/setup-php@v2"
59+
with:
60+
coverage: "none"
61+
php-version: "${{ matrix.php-version }}"
62+
tools: "cs2pr"
63+
64+
- name: "Install dependencies with Composer"
65+
uses: "ramsey/composer-install@v1"
66+
with:
67+
dependency-versions: "${{ matrix.dependencies }}"
68+
69+
- name: "Run PHPUnit"
70+
run: "vendor/bin/phpunit"
71+

.travis.yml

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

0 commit comments

Comments
 (0)