Skip to content

Add Laravel Mauritius #134

Add Laravel Mauritius

Add Laravel Mauritius #134

Workflow file for this run

name: PHPUnit
on:
push:
branches:
- main
pull_request:
jobs:
php-tests:
runs-on: ubuntu-latest
timeout-minutes: 10
name: "PHP Tests"
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, iconv
tools: composer:v2
- name: Register composer cache directory
id: composer-cache-files-dir
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
vendor
${{ steps.composer-cache-files-dir.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies
run: composer install
- name: Execute tests
run: vendor/bin/phpunit