Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
TavoNiievez committed Jan 13, 2025
1 parent adc7510 commit e88de91
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -25,15 +25,15 @@ jobs:

- name: Checkout Laravel 6 Sample
if: matrix.laravel == 6
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: codeception/laravel-module-tests
path: framework-tests
ref: 6.x

- name: Checkout Laravel 8 Sample
if: matrix.laravel == 8
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: codeception/laravel-module-tests
path: framework-tests
Expand All @@ -44,16 +44,16 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

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

- name: Install dependencies
run: |
composer require laravel/framework=${{ matrix.laravel }} --ignore-platform-req=php --no-update
composer install --prefer-dist --no-progress --ignore-platform-req=php
composer require laravel/framework=${{ matrix.laravel }} --no-update
composer install --prefer-dist --no-progress
- name: Validate composer.json and composer.lock
run: composer validate
Expand Down

0 comments on commit e88de91

Please sign in to comment.