feat: Minor fixes for the Compatibility Matrix Test (#2994)
This commit is contained in:
parent
a5f023ce05
commit
711f2308a0
|
@ -3,8 +3,8 @@ name: Compatibility Matrix Testing
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
MM_TEST_SERVER_URL:
|
CMT_MATRIX:
|
||||||
description: "The test server URL"
|
description: "A JSON object representing the testing matrix"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
DESKTOP_VERSION:
|
DESKTOP_VERSION:
|
||||||
|
@ -12,6 +12,20 @@ on:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
## This is picked up after the finish for cleanup
|
||||||
|
upload-cmt-server-detals:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: cmt/generate-instance-details-file
|
||||||
|
run: echo '${{ inputs.CMT_MATRIX }}' > instance-details.json
|
||||||
|
|
||||||
|
- name: cmt/upload-instance-details
|
||||||
|
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
|
||||||
|
with:
|
||||||
|
name: instance-details.json
|
||||||
|
path: instance-details.json
|
||||||
|
retention-days: 1
|
||||||
|
|
||||||
calculate-commit-hash:
|
calculate-commit-hash:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
outputs:
|
outputs:
|
||||||
|
@ -31,7 +45,7 @@ jobs:
|
||||||
needs:
|
needs:
|
||||||
- calculate-commit-hash
|
- calculate-commit-hash
|
||||||
steps:
|
steps:
|
||||||
- uses: mattermost/actions/delivery/update-commit-status@a74f6d87f847326c04d326bf1908da40cb9b3556
|
- uses: mattermost/actions/delivery/update-commit-status@746563b58e737a17a8ceb00b84a813b9e6e1b236
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
@ -41,31 +55,46 @@ jobs:
|
||||||
description: "Compatibility Matrix Testing for ${{ inputs.DESKTOP_VERSION }} version"
|
description: "Compatibility Matrix Testing for ${{ inputs.DESKTOP_VERSION }} version"
|
||||||
status: pending
|
status: pending
|
||||||
|
|
||||||
e2e-linux:
|
# Input follows the below schema
|
||||||
|
# {
|
||||||
|
# "environment": [
|
||||||
|
# {
|
||||||
|
# "os": "linux",
|
||||||
|
# "runner": "ubuntu-22.04"
|
||||||
|
# },
|
||||||
|
# {
|
||||||
|
# "os": "macos",
|
||||||
|
# "runner": "macos-13"
|
||||||
|
# },
|
||||||
|
# {
|
||||||
|
# "os": "windows",
|
||||||
|
# "runner": "windows-2022"
|
||||||
|
# }
|
||||||
|
# ],
|
||||||
|
# "server": [
|
||||||
|
# {
|
||||||
|
# "version": "9.6.1",
|
||||||
|
# "url": "https://delivery-cmt-8467830017-9-6-1.test.mattermost.cloud/"
|
||||||
|
# },
|
||||||
|
# {
|
||||||
|
# "version": "9.5.2",
|
||||||
|
# "url": "https://delivery-cmt-8467830017-9-5-2.test.mattermost.cloud/"
|
||||||
|
# }
|
||||||
|
# ]
|
||||||
|
# }
|
||||||
|
e2e:
|
||||||
|
name: ${{ matrix.environment.os }}-${{ matrix.server.version }}
|
||||||
uses: ./.github/workflows/e2e-functional-template.yml
|
uses: ./.github/workflows/e2e-functional-template.yml
|
||||||
|
needs:
|
||||||
|
- update-initial-status
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix: ${{ fromJson(inputs.CMT_MATRIX) }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ${{ matrix.environment.runner }}
|
||||||
cmt: true
|
cmt: true
|
||||||
MM_TEST_SERVER_URL: ${{ inputs.MM_TEST_SERVER_URL }}
|
MM_TEST_SERVER_URL: ${{ matrix.server.url }}
|
||||||
DESKTOP_VERSION: ${{ inputs.DESKTOP_VERSION }}
|
|
||||||
|
|
||||||
e2e-macos:
|
|
||||||
uses: ./.github/workflows/e2e-functional-template.yml
|
|
||||||
secrets: inherit
|
|
||||||
with:
|
|
||||||
runs-on: macos-13
|
|
||||||
cmt: true
|
|
||||||
MM_TEST_SERVER_URL: ${{ inputs.MM_TEST_SERVER_URL }}
|
|
||||||
DESKTOP_VERSION: ${{ inputs.DESKTOP_VERSION }}
|
|
||||||
|
|
||||||
e2e-windows:
|
|
||||||
uses: ./.github/workflows/e2e-functional-template.yml
|
|
||||||
secrets: inherit
|
|
||||||
with:
|
|
||||||
runs-on: windows-2022
|
|
||||||
cmt: true
|
|
||||||
MM_TEST_SERVER_URL: ${{ inputs.MM_TEST_SERVER_URL }}
|
|
||||||
DESKTOP_VERSION: ${{ inputs.DESKTOP_VERSION }}
|
DESKTOP_VERSION: ${{ inputs.DESKTOP_VERSION }}
|
||||||
|
|
||||||
# We need to duplicate here in order to set the proper commit status
|
# We need to duplicate here in order to set the proper commit status
|
||||||
|
@ -75,11 +104,9 @@ jobs:
|
||||||
if: failure() || cancelled()
|
if: failure() || cancelled()
|
||||||
needs:
|
needs:
|
||||||
- calculate-commit-hash
|
- calculate-commit-hash
|
||||||
- e2e-linux
|
- e2e
|
||||||
- e2e-macos
|
|
||||||
- e2e-windows
|
|
||||||
steps:
|
steps:
|
||||||
- uses: mattermost/actions/delivery/update-commit-status@a74f6d87f847326c04d326bf1908da40cb9b3556
|
- uses: mattermost/actions/delivery/update-commit-status@746563b58e737a17a8ceb00b84a813b9e6e1b236
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
@ -95,11 +122,9 @@ jobs:
|
||||||
if: success()
|
if: success()
|
||||||
needs:
|
needs:
|
||||||
- calculate-commit-hash
|
- calculate-commit-hash
|
||||||
- e2e-linux
|
- e2e
|
||||||
- e2e-macos
|
|
||||||
- e2e-windows
|
|
||||||
steps:
|
steps:
|
||||||
- uses: mattermost/actions/delivery/update-commit-status@a74f6d87f847326c04d326bf1908da40cb9b3556
|
- uses: mattermost/actions/delivery/update-commit-status@746563b58e737a17a8ceb00b84a813b9e6e1b236
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue