Skip to content
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

Feat: Migrate from travis to Github actions workflow #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
uses: shivammathur/setup-php@2.25.2
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

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 @@ -8,6 +8,7 @@
"psr-4": {"Utopia\\Registry\\": "src/Registry"}
},
"scripts": {
"test": "./vendor/bin/phpunit --configuration phpunit.xml",
"check": "./vendor/bin/phpstan analyse -l 7 src tests",
"lint": "./vendor/bin/pint --test",
"format": "./vendor/bin/pint"
Expand Down