Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Mar 6, 2024
1 parent 1352206 commit a1b039c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 4 deletions.
47 changes: 45 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-lucide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
submodules: recursive
Expand Down

0 comments on commit a1b039c

Please sign in to comment.