Skip to content

Commit

Permalink
Add tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dasundev committed Dec 30, 2023
1 parent 9817bd5 commit 148431c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: tests

on:
push:
branches:
- main
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
run-test:
runs-on: ubuntu-22.04

strategy:
fail-fast: true
matrix:
php: [8.1, 8.2, 8.3]
laravel: [10]
stability: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - Stability ${{ matrix.stability }} - MySQL 5.7

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: none

- name: Install dependencies
run: |
composer update --prefer-dist --no-interaction --no-progress --${{ matrix.stability }}
- name: Execute tests
run: composer run test

0 comments on commit 148431c

Please sign in to comment.