Skip to content
20 changes: 20 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Tests

on: [push, pull_request]

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

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

- name: Run Tests
run: |
docker run --rm -v $PWD:/app composer sh -c \
"composer install --profile --ignore-platform-reqs && composer analyze && composer test"



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