mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-20 13:23:07 +00:00
77 lines
2.4 KiB
YAML
77 lines
2.4 KiB
YAML
---
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
# Job Name
|
|
# -------------------------------------------------------------------------------------------------
|
|
name: MySQL
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
# When to run
|
|
# -------------------------------------------------------------------------------------------------
|
|
on:
|
|
# Runs on Pull Requests
|
|
pull_request:
|
|
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'
|
|
# Runs on master Branch and Tags
|
|
push:
|
|
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'
|
|
branches:
|
|
- master
|
|
tags:
|
|
- '[0-9]+.[0-9]+*'
|
|
|
|
|
|
jobs:
|
|
# -----------------------------------------------------------------------------------------------
|
|
# (1/3) Determine parameter settings
|
|
# -----------------------------------------------------------------------------------------------
|
|
params:
|
|
uses: ./.github/workflows/params-mysql.yml
|
|
|
|
|
|
# -----------------------------------------------------------------------------------------------
|
|
# (2/3) Test with default settings
|
|
# -----------------------------------------------------------------------------------------------
|
|
default:
|
|
needs: [params]
|
|
uses: ./.github/workflows/zzz-reuse-tests.yml
|
|
with:
|
|
matrix: ${{ needs.params.outputs.matrix }}
|
|
custom_config: false
|
|
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
|