Skip to content

Commit

Permalink
build: ci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Jul 26, 2024
1 parent 892afbf commit 3766490
Showing 1 changed file with 7 additions and 42 deletions.
49 changes: 7 additions & 42 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,16 @@
name: main
on:
pull_request:
push:
jobs:
tests-80:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.0.2]
laravel: [8.0, 9.0]
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
steps:
- name: Checkout code
uses: actions/checkout@v3

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

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
extensions: dom, curl, libxml, mbstring, zip, pcntl, gd, soap
coverage: none

- name: Install dependencies
run: composer require "illuminate/support:^${{ matrix.laravel }}" --prefer-stable --prefer-dist --no-interaction

- name: Execute tests
run: vendor/bin/phpunit --verbose

tests-81:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.1]
laravel: [8.0, 9.0, 10.0]
php: [8.2, 8.3]
laravel: [11.0]
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
steps:
- name: Checkout code
Expand Down Expand Up @@ -97,7 +62,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
tools: composer:v2
extensions: dom, curl, libxml, mbstring, zip, pcntl, gd, soap
coverage: none
Expand All @@ -107,4 +72,4 @@ jobs:

- name: Run style check
id: style_check
run: vendor/bin/phpcs
run: vendor/bin/pint --test

0 comments on commit 3766490

Please sign in to comment.