Skip to content

Commit

Permalink
add testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tcampbPPU committed Nov 12, 2022
1 parent b76c33d commit dac82cd
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PHPUnit Tests

on:
push:
pull_request:
schedule:
- cron: "0 0 * * 0" # Once a Week on first day of week at 00:00

jobs:
tests:
runs-on: ubuntu-20.04

strategy:
fail-fast: true
matrix:
php: [8.1]
laravel: [9]

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

steps:
- name: 🔨 Checkout code
uses: actions/checkout@v2

- name: 🔨 Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2

- name: 🔨 Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress

- name: 🧪 Run Execute PHPUnit Tests
run: composer test

0 comments on commit dac82cd

Please sign in to comment.