diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..5c0f6cc0 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,38 @@ +name: Tests + +on: [push] + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + php: [7.2, 7.3, 7.4, 8.0, 8.1] + + name: PHP ${{ matrix.php }} + + steps: + + - name: Checkout Code + uses: actions/checkout@v2 + + - name: Cache Dependencies + uses: actions/cache@v2 + with: + path: ~/.composer/cache/files + key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv, mcrypt + coverage: none + + - name: Install Dependencies + run: | + composer install --no-interaction + - name: Execute Tests + run: ./vendor/bin/phpunit diff --git a/tests/JmsSerializer/OTA/OTASerializationTest.php b/tests/JmsSerializer/OTA/OTASerializationTest.php index 311ec057..573d347a 100644 --- a/tests/JmsSerializer/OTA/OTASerializationTest.php +++ b/tests/JmsSerializer/OTA/OTASerializationTest.php @@ -209,6 +209,8 @@ public function testValidation($xml, $xsd, $class) if (@$xmlDom->schemaValidate($xsd)) { $this->assertCount(0, $violations, 'Validation errors in ' . $xml); } + + self::assertTrue(true); } private static function getXmlFiles()