Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
25 changes: 25 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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
Copy link

@2002Bishwajeet 2002Bishwajeet Aug 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use docker following the workflow here so we don't need to use third-party actions

uses: shivammathur/setup-php@2.25.2
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.

1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"license": "MIT",
"minimum-stability": "stable",
"scripts": {
"test": "./vendor/bin/phpunit --configuration phpunit.xml",
"lint": "./vendor/bin/pint --test",
"format": "./vendor/bin/pint"
},
Expand Down