Skip to content

Commit 01d6a41

Browse files
author
Joel Butcher
committed
replace travis with github actions
1 parent b99f807 commit 01d6a41

File tree

2 files changed

+36
-51
lines changed

2 files changed

+36
-51
lines changed

.github/workflows/tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
tests:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
php: [7.3, 7.4, 8.0]
17+
18+
name: PHP ${{ matrix.php }}
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
extensions: dom, curl
29+
tools: composer:v2
30+
coverage: none
31+
32+
- name: Install dependencies
33+
run: composer update --prefer-dist --no-interaction --no-progress
34+
35+
- name: Execute tests
36+
run: vendor/bin/phpunit --verbose

.travis.yml

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

0 commit comments

Comments
 (0)