Skip to content

Commit

Permalink
build: Update tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DevDavido committed Dec 22, 2023
1 parent fec4ff9 commit 0adb708
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
permissions:
checks: write
pull-requests: write
contents: read
strategy:
fail-fast: false
matrix:
Expand All @@ -16,7 +20,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
lfs: true
persist-credentials: false

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -26,19 +33,17 @@ jobs:

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-composer-
${{ runner.os }}-
restore-keys: ${{ runner.os }}-composer-${{ matrix.dependency-version }}-

- name: Install dependencies
run: composer update --${{ matrix.dependency-version }} --prefer-source --no-interaction
run: composer update --${{ matrix.dependency-version }} --no-interaction

- name: Setup problem matches
run: |
Expand Down

0 comments on commit 0adb708

Please sign in to comment.