Skip to content

Bump

Bump #16

Workflow file for this run

name: PHPUnit
on:
push:
branches:
- master
tags:
- "*.*.*"
pull_request:
branches:
- master
schedule:
- cron: "0 8 * * 1"
jobs:
Build:
runs-on: 'ubuntu-latest'
container: 'byjg/php:${{ matrix.php-version }}-cli'
strategy:
matrix:
php-version:
- "8.1"
- "8.0"
- "7.4"
- "7.3"
- "7.2"
- "7.1"
services:
mysql:
image: bitnami/mysql:8.0.20
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password
ports:
- "3306:3306"
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=20s
--health-retries=10
env:
MYSQL_TEST_URI: "mysql://root:password@mysql/accounttest"
steps:
- uses: actions/checkout@v2
- run: composer install
- run: ./vendor/bin/phpunit
# Documentation:
# runs-on: 'ubuntu-latest'
# needs: Build
# if: github.ref == 'refs/heads/master'
# env:
# DOC_GITHUB_TOKEN: '${{ secrets.DOC_TOKEN }}'
# steps:
# - uses: actions/checkout@v2
# - run: curl https://opensource.byjg.com/add-doc.sh | bash /dev/stdin php accounts