diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..9f942d1 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: "Tests" + +on: + pull_request: + workflow_dispatch: + + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 2 + - name: Run Tests + run: | + docker run --rm --interactive -v $PWD:/app composer sh -c \ + "composer install --profile --ignore-platform-reqs && composer test" + \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4b502c7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: php - -php: -- 7.4 -- 8.0 -- nightly - -notifications: - email: - - team@appwrite.io - -before_script: composer install --ignore-platform-reqs - -script: -- vendor/bin/phpunit --configuration phpunit.xml -- vendor/bin/psalm --show-info=true diff --git a/composer.json b/composer.json index 35ef4b9..c1f8ac7 100755 --- a/composer.json +++ b/composer.json @@ -20,6 +20,7 @@ "scripts": { "lint": "./vendor/bin/pint --test", "format": "./vendor/bin/pint", - "check": "./vendor/bin/phpstan analyse --level max src tests" + "check": "./vendor/bin/phpstan analyse --level max src tests", + "test": "vendor/bin/phpunit --configuration phpunit.xml" } }