|
| 1 | +name: 🛠🐬 MySQL 8.x tests |
| 2 | +run-name: Run database tests on MySQL on dispatch. Run No ${{ github.run_number }}. |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + fetch_depth: |
| 7 | + description: 'Depth of repo fetch (change if SHA populated)' |
| 8 | + required: false |
| 9 | + default: 1 |
| 10 | + type: number |
| 11 | + specific_sha: |
| 12 | + description: 'Commit SHA to checkout' |
| 13 | + required: false |
| 14 | + default: '' |
| 15 | + type: string |
| 16 | + mysql80: |
| 17 | + description: 'MySQL 8.0' |
| 18 | + type: boolean |
| 19 | + default: false |
| 20 | + required: true |
| 21 | + mysql81: |
| 22 | + description: 'MySQL 8.1' |
| 23 | + type: boolean |
| 24 | + default: false |
| 25 | + required: true |
| 26 | + mysql82: |
| 27 | + description: 'MySQL 8.2' |
| 28 | + type: boolean |
| 29 | + default: false |
| 30 | + required: true |
| 31 | + mysql83: |
| 32 | + description: 'MySQL 8.3' |
| 33 | + type: boolean |
| 34 | + default: false |
| 35 | + required: true |
| 36 | + mysql84: |
| 37 | + description: 'MySQL 8.4' |
| 38 | + type: boolean |
| 39 | + default: true |
| 40 | + required: true |
| 41 | + |
| 42 | +# new commits with the same key will cancel previously run workflows |
| 43 | +concurrency: |
| 44 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 45 | + cancel-in-progress: true |
| 46 | + |
| 47 | +permissions: |
| 48 | + contents: read |
| 49 | + actions: read |
| 50 | + checks: write |
| 51 | + |
| 52 | +jobs: |
| 53 | + test_on_mysql80: |
| 54 | + name: Tests on MySQL 8.0 |
| 55 | + if: ${{ inputs.mysql80 }} |
| 56 | + strategy: |
| 57 | + matrix: |
| 58 | + net: [ 'net5.0', 'net6.0' ] |
| 59 | + uses: DataObjects-NET/github-workflow-playground/.github/workflows/reusable-storage-dependant-tests.yml@7.1 |
| 60 | + with: |
| 61 | + storage: mysql80 |
| 62 | + build_config: Release |
| 63 | + target_framework: ${{ matrix.net }} |
| 64 | + specific_sha: ${{ inputs.specific_sha }} |
| 65 | + fetch_depth: ${{ fromJSON(inputs.fetch_depth) }} |
| 66 | + test_output_verbosity: minimal |
| 67 | + test_run_timeout: 30 |
| 68 | + run_main: true |
| 69 | + run_sql: true |
| 70 | + run_extensions: true |
| 71 | + publish_raw_results: true |
| 72 | + |
| 73 | + test_on_mysql81: |
| 74 | + name: Tests on MySQL 8.1 |
| 75 | + if: ${{ inputs.mysql81 }} |
| 76 | + strategy: |
| 77 | + matrix: |
| 78 | + net: [ 'net5.0', 'net6.0' ] |
| 79 | + uses: DataObjects-NET/github-workflow-playground/.github/workflows/reusable-storage-dependant-tests.yml@7.1 |
| 80 | + with: |
| 81 | + storage: mysql81 |
| 82 | + build_config: Release |
| 83 | + target_framework: ${{ matrix.net }} |
| 84 | + specific_sha: ${{ inputs.specific_sha }} |
| 85 | + fetch_depth: ${{ fromJSON(inputs.fetch_depth) }} |
| 86 | + test_output_verbosity: minimal |
| 87 | + test_run_timeout: 30 |
| 88 | + run_main: true |
| 89 | + run_sql: true |
| 90 | + run_extensions: true |
| 91 | + publish_raw_results: false |
| 92 | + |
| 93 | + test_on_mysql82: |
| 94 | + name: Tests on MySQL 8.2 |
| 95 | + if: ${{ inputs.mysql82 }} |
| 96 | + strategy: |
| 97 | + matrix: |
| 98 | + net: [ 'net5.0', 'net6.0' ] |
| 99 | + uses: DataObjects-NET/github-workflow-playground/.github/workflows/reusable-storage-dependant-tests.yml@7.1 |
| 100 | + with: |
| 101 | + storage: mysql82 |
| 102 | + build_config: Release |
| 103 | + target_framework: ${{ matrix.net }} |
| 104 | + specific_sha: ${{ inputs.specific_sha }} |
| 105 | + fetch_depth: ${{ fromJSON(inputs.fetch_depth) }} |
| 106 | + test_output_verbosity: minimal |
| 107 | + test_run_timeout: 30 |
| 108 | + run_main: true |
| 109 | + run_sql: true |
| 110 | + run_extensions: true |
| 111 | + publish_raw_results: false |
| 112 | + |
| 113 | + test_on_mysql83: |
| 114 | + name: Tests on MySQL 8.3 |
| 115 | + if: ${{ inputs.mysql83 }} |
| 116 | + strategy: |
| 117 | + matrix: |
| 118 | + net: [ 'net5.0', 'net6.0' ] |
| 119 | + uses: DataObjects-NET/github-workflow-playground/.github/workflows/reusable-storage-dependant-tests.yml@7.1 |
| 120 | + with: |
| 121 | + storage: mysql83 |
| 122 | + build_config: Release |
| 123 | + target_framework: ${{ matrix.net }} |
| 124 | + specific_sha: ${{ inputs.specific_sha }} |
| 125 | + fetch_depth: ${{ fromJSON(inputs.fetch_depth) }} |
| 126 | + test_output_verbosity: minimal |
| 127 | + test_run_timeout: 30 |
| 128 | + run_main: true |
| 129 | + run_sql: true |
| 130 | + run_extensions: true |
| 131 | + publish_raw_results: false |
| 132 | + |
| 133 | + test_on_mysql84: |
| 134 | + name: Tests on MySQL 8.4 |
| 135 | + if: ${{ inputs.mysql84 }} |
| 136 | + strategy: |
| 137 | + matrix: |
| 138 | + net: [ 'net5.0', 'net6.0' ] |
| 139 | + uses: DataObjects-NET/github-workflow-playground/.github/workflows/reusable-storage-dependant-tests.yml@7.1 |
| 140 | + with: |
| 141 | + storage: mysql84 |
| 142 | + build_config: Release |
| 143 | + target_framework: ${{ matrix.net }} |
| 144 | + specific_sha: ${{ inputs.specific_sha }} |
| 145 | + fetch_depth: ${{ fromJSON(inputs.fetch_depth) }} |
| 146 | + test_output_verbosity: minimal |
| 147 | + test_run_timeout: 30 |
| 148 | + run_main: true |
| 149 | + run_sql: true |
| 150 | + run_extensions: true |
| 151 | + publish_raw_results: false |
0 commit comments