From a1b039c52244c3615552e5a6c3a232ac5f94b9be Mon Sep 17 00:00:00 2001 From: Dan Pock Date: Wed, 6 Mar 2024 11:45:34 -0500 Subject: [PATCH] update actions --- .github/workflows/tests.yml | 47 +++++++++++++++++++++++++++-- .github/workflows/update-lucide.yml | 4 +-- 2 files changed, 47 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 14b5cd3..c431019 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,7 +30,7 @@ jobs: git config --system core.eol lf - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -44,7 +44,50 @@ jobs: composer require "illuminate/contracts:${{ matrix.laravel }}" --no-interaction --no-update - name: "Install dependencies (Composer)" - uses: "ramsey/composer-install@v2" + uses: ramsey/composer-install@v3 + with: + dependency-versions: "highest" + + - name: Execute tests + run: vendor/bin/phpunit --verbose + tests-old: + name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.operating-system }} + runs-on: ${{ matrix.operating-system }} + + strategy: + fail-fast: true + matrix: + php: [8.0] + laravel: [^8.53, ^9.0] + operating-system: + - "macos-latest" + - "ubuntu-latest" + - "windows-latest" + + steps: + - name: "Configure Git (for Windows)" + if: ${{ matrix.operating-system == 'windows-latest' }} + shell: "bash" + run: | + git config --system core.autocrlf false + git config --system core.eol lf + + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, fileinfo + coverage: none + + - name: "Lock Laravel contracts to ${{ matrix.laravel }}" + run: | + composer require "illuminate/contracts:${{ matrix.laravel }}" --no-interaction --no-update + + - name: "Install dependencies (Composer)" + uses: ramsey/composer-install@v3 with: dependency-versions: "highest" diff --git a/.github/workflows/update-lucide.yml b/.github/workflows/update-lucide.yml index 20add72..7c3e05b 100644 --- a/.github/workflows/update-lucide.yml +++ b/.github/workflows/update-lucide.yml @@ -13,7 +13,7 @@ jobs: up_to_date: ${{ steps.current-version.outputs.CURRENT_VERSION == steps.latest-version.outputs.LATEST_VERSION }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.PAT }} @@ -41,7 +41,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ secrets.PAT }} submodules: recursive