2019-11-09 16:56:34 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# Job Name
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
2022-03-27 16:16:14 +00:00
|
|
|
name: MySQL
|
2019-11-09 16:56:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# When to run
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
on:
|
|
|
|
# Runs on Pull Requests
|
|
|
|
pull_request:
|
2022-04-01 03:01:29 +00:00
|
|
|
paths:
|
|
|
|
- '.devilbox/**'
|
|
|
|
- '.github/workflows/params*.yml'
|
|
|
|
- '.github/workflows/test*.yml'
|
|
|
|
- '.github/workflows/zzz*.yml'
|
|
|
|
- '.tests/**'
|
|
|
|
- 'cfg/vhost-gen/**'
|
|
|
|
- 'compose/**'
|
|
|
|
- 'docker-compose.override.yml-example'
|
|
|
|
- 'docker-compose.yml'
|
|
|
|
- 'env-example'
|
|
|
|
- '!**.md'
|
2019-11-09 16:56:34 +00:00
|
|
|
# Runs on master Branch and Tags
|
|
|
|
push:
|
2022-04-01 03:01:29 +00:00
|
|
|
paths:
|
|
|
|
- '.devilbox/**'
|
|
|
|
- '.github/workflows/params*.yml'
|
|
|
|
- '.github/workflows/test*.yml'
|
|
|
|
- '.github/workflows/zzz*.yml'
|
|
|
|
- '.tests/**'
|
|
|
|
- 'cfg/vhost-gen/**'
|
|
|
|
- 'compose/**'
|
|
|
|
- 'docker-compose.override.yml-example'
|
|
|
|
- 'docker-compose.yml'
|
|
|
|
- 'env-example'
|
|
|
|
- '!**.md'
|
2019-11-09 16:56:34 +00:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- '[0-9]+.[0-9]+*'
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
2022-03-27 14:05:51 +00:00
|
|
|
# -----------------------------------------------------------------------------------------------
|
2022-03-27 16:10:52 +00:00
|
|
|
# (1/3) Determine parameter settings
|
2022-03-27 14:05:51 +00:00
|
|
|
# -----------------------------------------------------------------------------------------------
|
|
|
|
params:
|
2022-03-27 22:11:15 +00:00
|
|
|
uses: ./.github/workflows/params-mysql.yml
|
2022-03-27 14:05:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------------------------
|
2022-03-27 16:10:52 +00:00
|
|
|
# (2/3) Test with default settings
|
2022-03-27 14:05:51 +00:00
|
|
|
# -----------------------------------------------------------------------------------------------
|
2022-03-27 16:10:52 +00:00
|
|
|
default:
|
2022-03-27 14:05:51 +00:00
|
|
|
needs: [params]
|
|
|
|
uses: ./.github/workflows/zzz-reuse-tests.yml
|
|
|
|
with:
|
|
|
|
matrix: ${{ needs.params.outputs.matrix }}
|
|
|
|
custom_config: false
|
2022-03-27 16:10:52 +00:00
|
|
|
operating_system: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------------------------
|
|
|
|
# (3/3) Test with customizedt settings
|
|
|
|
# -----------------------------------------------------------------------------------------------
|
|
|
|
custom:
|
|
|
|
needs: [params]
|
|
|
|
uses: ./.github/workflows/zzz-reuse-tests.yml
|
|
|
|
with:
|
|
|
|
matrix: ${{ needs.params.outputs.matrix }}
|
|
|
|
custom_config: true
|
|
|
|
operating_system: ubuntu-latest
|