mirror of
https://github.com/nullthoughts/laravel-data-sync.git
synced 2026-02-25 19:57:28 +00:00
fix(ci): validated phpunit action
This commit is contained in:
16
.github/workflows/phpunit.yml
vendored
16
.github/workflows/phpunit.yml
vendored
@@ -16,18 +16,14 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
statuses: write
|
statuses: write
|
||||||
|
|
||||||
outputs:
|
|
||||||
lock: ${{ steps.hash.outputs.lock }}
|
|
||||||
cache: ${{ steps.composer-cache.outputs.cache }}
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
php-versions: [ '8.0', '8.1', '8.2', '8.3' ]
|
php: [ '8.0', '8.1', '8.2', '8.3' ]
|
||||||
stability: [ 'stable', 'lowest' ]
|
stability: [ 'stable', 'lowest' ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
@@ -40,7 +36,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Get composer cache directory
|
- name: Get composer cache directory
|
||||||
id: composer-cache
|
id: composer-cache-dir
|
||||||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Get composer.lock or composer.json hash for caching
|
- name: Get composer.lock or composer.json hash for caching
|
||||||
@@ -57,10 +53,10 @@ jobs:
|
|||||||
id: composer-cache
|
id: composer-cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ outputs.cache }}
|
path: ${{ steps.composer-cache-dir.outputs.dir }}
|
||||||
key: ${{ runner.os }}-php-${{ matrix.php }}-${{ outputs.lock }}
|
key: ${{ runner.os }}-php-${{ matrix.php }}-${{ steps.hash.outputs.lock }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-php-${{ matrix.php }}-${{ outputs.lock }}
|
${{ runner.os }}-php-${{ matrix.php }}-${{ steps.hash.outputs.lock }}
|
||||||
${{ runner.os }}-php-${{ matrix.php }}-
|
${{ runner.os }}-php-${{ matrix.php }}-
|
||||||
${{ runner.os }}-php-
|
${{ runner.os }}-php-
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user