diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..adfcfcf --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +name: "Tests" + +on: [pull_request,push] + + +jobs: + test: + name: "Unit & E2E 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 de010b7..a6fcde0 100755 --- a/composer.json +++ b/composer.json @@ -9,7 +9,8 @@ }, "scripts": { "lint": "./vendor/bin/pint --test", - "format": "./vendor/bin/pint" + "format": "./vendor/bin/pint", + "test": "./vendor/bin/phpunit --configuration phpunit.xml" }, "require": { "php": ">=7.4"