Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
Create phpunit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
joanfabregat committed Dec 6, 2024
1 parent c0f2446 commit aeddc08
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run PHP Tests

on:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest

services:
# Define the Docker service
db:
image: codeinchq/pdf2img:latest
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: testdb
ports:
- 3000:3000

steps:
# Check out the code
- name: Checkout code
uses: actions/checkout@v3

# Set up PHP with the version you need
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer

# Install dependencies
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

# Run tests
- name: Run tests
run: vendor/bin/phpunit

0 comments on commit aeddc08

Please sign in to comment.