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 196dccf
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 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,16 +33,14 @@ 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
Expand Down

0 comments on commit 196dccf

Please sign in to comment.