Skip to content

Commit

Permalink
Connected shared files for githab actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SadElephant committed Sep 4, 2023
1 parent 9b4b2f6 commit d16518c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 59 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
name: Check & fix styling

on: [push]
on:
push:

jobs:
php-cs-fixer:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Run PHP CS Fixer
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --config=.php_cs.dist.php --allow-risky=yes

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix styling
uneditable:
uses: esplora/.github/.github/workflows/php-cs-fixer.yml@main
44 changes: 4 additions & 40 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,7 @@ name: Tests
on: [ push,pull_request ]

jobs:
phpunit:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
php: [8.2, 8.1]
os: [ ubuntu-latest, windows-latest ]
laravel: [ 10.*]
dependency-version: [ prefer-lowest, prefer-stable ]
include:
- laravel: 10.*
testbench: 8.*

name: P${{ matrix.php }} - ${{ matrix.os }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

steps:
- name: Checkout code 🛎️
uses: actions/checkout@v1

- name: Cache dependencies 🔧
uses: actions/cache@v1
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, fileinfo, redis
coverage: none
tools: composer:v2

- name: Install dependencies 🔧
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests (Unit and Feature tests) via PHPUnit 🧪
run: vendor/bin/phpunit
uneditable:
uses: esplora/.github/.github/workflows/phpunit-for-laravel.yaml@git
with:
php: '[ "8.2", "8.1" ]'
5 changes: 5 additions & 0 deletions src/Memento.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ class Memento extends Facade
*/
protected static function getFacadeAccessor()
{





return MementoStorage::class;
}
}

0 comments on commit d16518c

Please sign in to comment.