diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..53ccfe6 --- /dev/null +++ b/.github/workflows/tests.yml @@ -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 + with: + php-version: ${{ matrix.php-version }} + + - name: Install Dependencies + run: composer install --ignore-platform-reqs + + - name: Run Tests + run: composer test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6682db7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: php - -php: -- 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 b6951e9..d6d334c 100755 --- a/composer.json +++ b/composer.json @@ -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"