From 77aadddc7150274a816ca6b91fd7dfd83ef6f5f0 Mon Sep 17 00:00:00 2001 From: Seth Phat Date: Wed, 25 Oct 2023 19:56:11 +0700 Subject: [PATCH] ShipSaaS Logger Install CI test --- .github/workflows/try-installation.yml | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/try-installation.yml diff --git a/.github/workflows/try-installation.yml b/.github/workflows/try-installation.yml new file mode 100644 index 0000000..8c24ead --- /dev/null +++ b/.github/workflows/try-installation.yml @@ -0,0 +1,31 @@ +name: Try Install Package (Laravel 10) + +on: + pull_request: + branches: + - 'main' + types: [ opened, synchronize, reopened, ready_for_review ] + push: + branches: + - 'main' + +jobs: + try_installation: + strategy: + fail-fast: false + matrix: + version: [ '^10.0' ] + runs-on: ubuntu-latest + steps: + - name: Setup PHP with coverage driver + uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + coverage: pcov + + - name: Setup and install package on Laravel + if: success() + run: | + composer create-project laravel/laravel:${{ matrix.version }} laravel + cd laravel + composer require shipsaas/shipsaas-logger