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 8d142c7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +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 diff --git a/composer.json b/composer.json index f6f02ca..1e7af32 100755 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "psr-4": {"Utopia\\Domains\\": "src/Domains"} }, "scripts": { - "test": "vendor/bin/phpunit", + "test": "vendor/bin/phpunit --configuration phpunit.xml", "lint": "./vendor/bin/pint --test", "format": "./vendor/bin/pint" },