Skip to content

Commit

Permalink
Create tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Dec 25, 2023
1 parent 0d24c6a commit 76e8d91
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
push:
branches:
- master
- '*.x'
name: Tests
permissions:
contents: read

jobs:
phpunit:
runs-on: ubuntu-latest
container:
image: kirschbaumdevelopment/laravel-test-runner:8.1

services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: test
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Install composer dependencies
run: |
composer install --no-ansi --no-interaction --no-progress --no-scripts
- name: Run Testsuite
run: vendor/bin/phpunit

0 comments on commit 76e8d91

Please sign in to comment.