Skip to content

Commit 5365ad3

Browse files
committed
migrates to GitHub workflows
1 parent 7ea4ede commit 5365ad3

File tree

2 files changed

+48
-13
lines changed

2 files changed

+48
-13
lines changed

.github/workflows/CI.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.operating-system }}
8+
strategy:
9+
matrix:
10+
operating-system: [ubuntu-latest]
11+
php-versions: ["7.2", "7.3", "7.4", 8.0"]
12+
env:
13+
tools: composer
14+
name: PHP ${{ matrix.php-versions }} test on ${{ matrix.operating-system }}
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php-versions }}
23+
tools: ${{ env.tools }}
24+
env:
25+
fail-fast: true
26+
27+
- name: Setup problem matchers for PHPUnit
28+
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
29+
30+
- name: Validate composer
31+
run: composer validate
32+
33+
- name: Get composer cache directory
34+
id: composer-cache
35+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
36+
37+
- name: Cache dependencies
38+
uses: actions/cache@v2
39+
with:
40+
path: ${{ steps.composer-cache.outputs.dir }}
41+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
42+
restore-keys: ${{ runner.os }}-composer-
43+
44+
- name: Install dependencies
45+
run: composer install
46+
47+
- name: Run tests
48+
run: composer test

.travis.yml

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

0 commit comments

Comments
 (0)