Skip to content

Feat: Migrate to Github Actions #12

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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
26 changes: 26 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Tests

on: [pull_request]

jobs:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
php-version: [8.0, nightly]

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

- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php-version }}

- name: Install Dependencies
run: composer install --ignore-platform-reqs

- name: Run Tests
run: composer test
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"scripts": {
"lint": "./vendor/bin/pint --test",
"format": "./vendor/bin/pint",
"check": "./vendor/bin/phpstan analyse --level 8 src tests"
"check": "./vendor/bin/phpstan analyse --level 8 src tests",
"test": "./vendor/bin/phpunit --configuration phpunit.xml"
},
"require": {
"php": ">=8.0"
Expand Down