Skip to content

Commit

Permalink
Additional Testing, Optimised README.md, GPTActions (#1)
Browse files Browse the repository at this point in the history
Refactoring
Add GPTActions
Improved testing
Improved README.md
Add testing pipeline
Add support for Laravel 9
  • Loading branch information
maltekuhr authored Jul 7, 2023
1 parent a493fd4 commit 7362c9d
Show file tree
Hide file tree
Showing 90 changed files with 1,371 additions and 9,098 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Tests

on:
push:
branches:
- main

pull_request:
types: [ opened, synchronize, reopened ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 8.1, 8.2 ]
laravel: [ 9.*, 10.* ]
guzzle: [ 7.* ]
dependency-version: [ prefer-lowest, prefer-stable ]
include:

- laravel: 9.*
testbench: 7.*

- laravel: 10.*
testbench: 8.*

exclude:
# PHP 8.2 requires Laravel 9.33 at least, so skip lowest
- laravel: 9.*
php: 8.2
dependency-version: prefer-lowest

name: P${{ matrix.php }} / L${{ matrix.laravel }} / G${{ matrix.guzzle }} / ${{ matrix.dependency-version }}

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

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Install dependencies
run: |
composer self-update ${{ matrix.composer-version }}
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "guzzlehttp/guzzle:${{ matrix.guzzle }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/vendor
.phpunit.result.cache
/.idea
.env
.env
.composer.lock
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

118 changes: 0 additions & 118 deletions .idea/blade.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/codeception.xml

This file was deleted.

Loading

0 comments on commit 7362c9d

Please sign in to comment.