Skip to content

Commit

Permalink
Unit tests: remove travis, add gh workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Singer committed Oct 24, 2023
1 parent 8058394 commit 1a7c7ac
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 30 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: tests

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
php:
runs-on: ubuntu-latest

strategy:
matrix:
php: [7.4, 8.0, 8.1, 8.2]
dependency-version: [prefer-lowest, prefer-stable]

steps:
- name: checkout code
uses: actions/checkout@v4

- name: setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug

- name: install dependencies
run: composer update --${{ matrix.dependency-version }}

- name: run tests
run: php vendor/bin/phpunit
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

0 comments on commit 1a7c7ac

Please sign in to comment.