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 to Github Actions #29

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

on: [pull_request]
faisalill marked this conversation as resolved.
Show resolved Hide resolved

jobs:
tests:
name: Tests
runs-on: ubuntu-latest

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

- name: Setup PHP
uses: shivammathur/setup-php@2.25.5
faisalill marked this conversation as resolved.
Show resolved Hide resolved
with:
php-version: '8.0'

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

- name: Run Tests
run: composer test

- name: Run Analyze
faisalill marked this conversation as resolved.
Show resolved Hide resolved
run: composer analyze

15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"license": "MIT",

"scripts": {
"test": ".vendor/bin/phpunit --configuration phpunit.xml < tests/input.txt",
"test": "./vendor/bin/phpunit --configuration phpunit.xml < tests/input.txt",
"lint": "./vendor/bin/pint --test",
"format": "./vendor/bin/pint"
"format": "./vendor/bin/pint",
"analyze": "./vendor/bin/psalm --show-info=true"
},
"autoload": {
"psr-4": {"Utopia\\CLI\\": "src/CLI"}
Expand Down