Skip to content

Add github actions

Add github actions #1

Workflow file for this run

name: "Run Tests"
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1, 8.2]
stability: [prefer-stable]
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:9.*" "imanghafoori/laravel-nullable:^1.2"
"imanghafoori/laravel-smart-facades:^1.0" "orchestra/testbench:~6.0" "mockery/mockery:*" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
# - name: Execute tests
# run: vendor/bin/phpunit