Skip to content

Add tests with GitHub actions #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 13, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on: [ push, pull_request ]

jobs:
CI:
name: ${{ matrix.php }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- php: '7.4'
- php: '8.0'
- php: '8.1'
- php: '8.2'

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none

- name: Checkout code
uses: actions/checkout@v3

- name: Install vips
run: sudo apt-get install -y libvips

- name: Install composer dependencies
run: |
composer update --prefer-dist --no-interaction --no-progress --no-ansi

- name: PHPUnit
run: composer test
60 changes: 0 additions & 60 deletions .travis.yml

This file was deleted.