feat: adding matrix in all workflows
This commit is contained in:
parent
5fb453f821
commit
964b80943d
4 changed files with 14 additions and 9 deletions
13
.github/workflows/generate_examples.yml
vendored
13
.github/workflows/generate_examples.yml
vendored
|
@ -9,8 +9,11 @@ on:
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
mysql_examples:
|
||||||
build:
|
# This workflow contains a single job called "build"
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
MYSQL_VERSION: [5.7, 8.0]
|
||||||
# The type of runner that the job will run on
|
# The type of runner that the job will run on
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
@ -23,7 +26,7 @@ jobs:
|
||||||
uses: mirromutth/mysql-action@v1.1
|
uses: mirromutth/mysql-action@v1.1
|
||||||
with:
|
with:
|
||||||
mysql root password: "root"
|
mysql root password: "root"
|
||||||
mysql version: "8.0"
|
mysql version: "${{ matrix.MYSQL_VERSION }}"
|
||||||
|
|
||||||
- name: Injecting credentials
|
- name: Injecting credentials
|
||||||
run: |
|
run: |
|
||||||
|
@ -47,7 +50,7 @@ jobs:
|
||||||
- name: Run verbose mode with dumpdir result
|
- name: Run verbose mode with dumpdir result
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ./examples/github/result
|
mkdir -p ./examples/github/result
|
||||||
sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose --dumpdir=./examples/github/result --json | tee -a ./examples/github/result/result.json
|
sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose --dumpdir=./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }} --json | tee -a ./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }}/result.json
|
||||||
|
|
||||||
# Runs a single command using the runners shell
|
# Runs a single command using the runners shell
|
||||||
- name: Run the Action
|
- name: Run the Action
|
||||||
|
@ -58,4 +61,4 @@ jobs:
|
||||||
commit_prefix: "[AUTO]"
|
commit_prefix: "[AUTO]"
|
||||||
commit_message: "Updates result examples (via Actions)"
|
commit_message: "Updates result examples (via Actions)"
|
||||||
force: false
|
force: false
|
||||||
target_branch: update/version
|
target_branch: master
|
7
.github/workflows/run_mt_with_db.yml
vendored
7
.github/workflows/run_mt_with_db.yml
vendored
|
@ -10,7 +10,10 @@ on:
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
# This workflow contains a single job called "build"
|
||||||
build:
|
run_mt_with_db:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
MYSQL_VERSION: [5.7, 8.0]
|
||||||
# The type of runner that the job will run on
|
# The type of runner that the job will run on
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
@ -23,7 +26,7 @@ jobs:
|
||||||
uses: mirromutth/mysql-action@v1.1
|
uses: mirromutth/mysql-action@v1.1
|
||||||
with:
|
with:
|
||||||
mysql root password: "root"
|
mysql root password: "root"
|
||||||
mysql version: "${{ inputs.MYSQL_VERSION }}"
|
mysql version: "${{ matrix.MYSQL_VERSION }}"
|
||||||
|
|
||||||
- name: Injecting credentials
|
- name: Injecting credentials
|
||||||
run: |
|
run: |
|
||||||
|
|
2
.github/workflows/update_cve_and_docs.yml
vendored
2
.github/workflows/update_cve_and_docs.yml
vendored
|
@ -45,4 +45,4 @@ jobs:
|
||||||
commit_prefix: "[AUTO]"
|
commit_prefix: "[AUTO]"
|
||||||
commit_message: "Updates CVE and docs (via Actions)"
|
commit_message: "Updates CVE and docs (via Actions)"
|
||||||
force: false
|
force: false
|
||||||
target_branch: update/version
|
target_branch: master
|
1
test_db
1
test_db
|
@ -1 +0,0 @@
|
||||||
Subproject commit d01cb62fcfa4671773f167480df174d8ce4316c1
|
|
Loading…
Reference in a new issue