diff --git a/.github/workflows/monorepo-validate.yml b/.github/workflows/monorepo-validate.yml new file mode 100644 index 0000000..ca0852d --- /dev/null +++ b/.github/workflows/monorepo-validate.yml @@ -0,0 +1,26 @@ +name: monorepo-validate + +on: + push: + pull_request: + +jobs: + run-validation: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: vendor + key: composer-${{ hashFiles('composer.lock') }} + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.0 + extensions: mbstring, pdo, pdo_sqlite + coverage: none + - name: Install dependencies + run: composer install -n --prefer-dist + - name: Valdidate Dependencies are consistent + run: vendor/bin/monorepo-builder validate \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8812e1d..2fbacc4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,7 +36,5 @@ jobs: run: | composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest - - name: Valdidate Dependencies are consistent - run: vendor/bin/monorepo-builder validate - name: Execute tests run: vendor/bin/phpunit --verbose \ No newline at end of file diff --git a/composer.json b/composer.json index b0da6b4..0cf6304 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "require-dev": { "orchestra/testbench": "^6.2|^7.0", "phpunit/phpunit": "^9.4", - "symplify/monorepo-builder": "^9.4.10" + "symplify/monorepo-builder": "^9.4.21" }, "autoload": { "psr-4": {