Skip to content

ci: add actions to avoid duplicated code #7

ci: add actions to avoid duplicated code

ci: add actions to avoid duplicated code #7

name: Run feature testing about API Admin
on:
push:
branches-ignore:
- develop
- master
paths:
- '.github/workflows/default-api-admin-testing.yml'
- 'src/App/ApiAdmin/**.php'
jobs:
laravel-tests:
runs-on: ubuntu-latest
env:
DB_DATABASE: test
DB_USERNAME: root
DB_PASSWORD: password
BROADCAST_DRIVER: log
CACHE_DRIVER: redis
QUEUE_CONNECTION: redis
SESSION_DRIVER: redis
services:
mysql:
image: mysql:8.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: false
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: test
ports:
- 3306/tcp
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
redis:
image: redis
ports:
- 6379/tcp
options: --health-cmd="redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Execute tests
uses: ./.github/actions/app-testing
with:
test-group: 'ApiAdmin'