Skip to content

Add middleware support #14

Add middleware support

Add middleware support #14

Workflow file for this run

# CI workflow for laravel-otc
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
[ push, pull_request ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install Dependencies
uses: php-actions/composer@v6
with:
php_version: 8.1
php_extensions: gd zip
version: 2
args: -q -n
- name: Directory Permissions
run: sudo chmod -R 777 vendor/orchestra/testbench-core/laravel/bootstrap/cache
- name: Execute tests (Unit and Feature tests) via PHPUnit
run: |
php -v
vendor/bin/phpunit