Skip to content

Update Branch

Update Branch #18

Workflow file for this run

name: PHPUnit
on:
push:
branches:
- main
tags:
- "*.*.*"
pull_request:
branches:
- main
env:
RABBITMQ_HOST: rabbitmq
jobs:
Build:
runs-on: 'ubuntu-latest'
container: 'byjg/php:${{ matrix.php-version }}-cli'
strategy:
matrix:
php-version:
- "8.2"
- "8.1"
- "8.0"
- "7.4"
services:
rabbitmq:
image: rabbitmq:3-management
env:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
ports:
- "5672:5672"
options: >-
--health-cmd "rabbitmq-diagnostics status"
--health-interval "10s"
--health-timeout "5s"
--health-retries "5"
--health-start-period 10s
steps:
- uses: actions/checkout@v4
- run: composer install
- run: ./vendor/bin/phpunit
Documentation:
if: github.ref == 'refs/heads/master'
needs: Build
uses: byjg/byjg.github.io/.github/workflows/add-doc.yaml@master
with:
folder: php
project: ${{ github.event.repository.name }}
secrets: inherit