Skip to content

Commit

Permalink
Set up Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-daneshvar authored Mar 24, 2024
1 parent 8f98c9c commit 53c6f24
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
test:

runs-on: ubuntu-latest

strategy:
matrix:
php: [8.1, 8.2, 8.3]
laravel: ['10.*', '11.*']
dependency-version: [prefer-lowest, prefer-stable]

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Run tests
run: vendor/bin/phpunit

0 comments on commit 53c6f24

Please sign in to comment.