Skip to content

Commit

Permalink
ci: migrate to github workflow (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
yohang authored Jan 9, 2025
1 parent f1a35fe commit de04bd0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 27 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
pull_request:

jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
dependencies-versions: [ lowest, highest ]
name: PHPUnit test suite
steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Install dependencies
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependencies-versions }}

- name: Run tests
run: vendor/bin/phpunit --coverage-text
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

0 comments on commit de04bd0

Please sign in to comment.