Skip to content

Commit e9b56e7

Browse files
authored
Merge pull request #27 from reedy/githubactions
Move CI to GitHub actions
2 parents 6db5bd0 + 947c063 commit e9b56e7

File tree

3 files changed

+46
-18
lines changed

3 files changed

+46
-18
lines changed

.gitattributes

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
.gitattributes export-ignore
2+
.github/ export-ignore
23
.gitignore export-ignore
34
.phpcs.xml export-ignore
4-
.scrutinizer.yml export-ignore
5-
.travis.yml export-ignore
65
composer.json export-ignore
76
package.json export-ignore
8-
docs/ export-ignore
97
phpunit.xml.dist export-ignore
108
tests/ export-ignore

.github/workflows/php.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Test
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
9+
php:
10+
name: PHP ${{ matrix.php }}
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
include:
16+
# Includes php7.4 - 8.3 and composer 2
17+
# https://github.com/actions/runner-images/blob/releases/ubuntu20/20241023/images/ubuntu/Ubuntu2004-Readme.md#php-tools
18+
- php: '7.4'
19+
os: ubuntu-20.04
20+
- php: '8.0'
21+
os: ubuntu-20.04
22+
- php: '8.1'
23+
os: ubuntu-20.04
24+
- php: '8.2'
25+
os: ubuntu-20.04
26+
- php: '8.3'
27+
os: ubuntu-20.04
28+
29+
runs-on: ${{ matrix.os }}
30+
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v2
34+
35+
- name: Use PHP ${{ matrix.php }}
36+
run: sudo update-alternatives --set php /usr/bin/php${{ matrix.php }}
37+
38+
- name: Validate composer.json and composer.lock
39+
run: composer validate
40+
41+
- name: Install dependencies
42+
run: composer install --prefer-dist --no-progress --no-suggest
43+
44+
- name: Test
45+
run: composer test

.travis.yml

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

0 commit comments

Comments
 (0)