Skip to content

Commit 1a7c7ac

Browse files
author
Christoph Singer
committed
Unit tests: remove travis, add gh workflows
1 parent 8058394 commit 1a7c7ac

2 files changed

Lines changed: 35 additions & 30 deletions

File tree

.github/workflows/tests.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
php:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
php: [7.4, 8.0, 8.1, 8.2]
19+
dependency-version: [prefer-lowest, prefer-stable]
20+
21+
steps:
22+
- name: checkout code
23+
uses: actions/checkout@v4
24+
25+
- name: setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php }}
29+
coverage: xdebug
30+
31+
- name: install dependencies
32+
run: composer update --${{ matrix.dependency-version }}
33+
34+
- name: run tests
35+
run: php vendor/bin/phpunit

.travis.yml

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

0 commit comments

Comments
 (0)