![dependabot[bot]](/assets/img/avatar_default.png)
Bumps the github-actions-updates group with 4 updates in the / directory: [actions/setup-node](https://github.com/actions/setup-node), [actions/download-artifact](https://github.com/actions/download-artifact), [mattermost/actions](https://github.com/mattermost/actions) and [actions/setup-python](https://github.com/actions/setup-python). Updates `actions/setup-node` from 4.3.0 to 4.4.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](cdca7365b2...49933ea528
) Updates `actions/download-artifact` from 4.2.1 to 4.3.0 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](95815c38cf...d3f86a106a
) Updates `mattermost/actions` from 746563b58e737a17a8ceb00b84a813b9e6e1b236 to 2620a83b059b7218192636361299aadde81ae243 - [Commits](746563b58e...2620a83b05
) Updates `actions/setup-python` from 5.5.0 to 5.6.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](8d9ed9ac5c...a26af69be9
) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: 4.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/download-artifact dependency-version: 4.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: mattermost/actions dependency-version: 2620a83b059b7218192636361299aadde81ae243 dependency-type: direct:production dependency-group: github-actions-updates - dependency-name: actions/setup-python dependency-version: 5.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
137 lines
4.3 KiB
YAML
137 lines
4.3 KiB
YAML
name: Compatibility Matrix Testing
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
CMT_MATRIX:
|
|
description: "A JSON object representing the testing matrix"
|
|
required: true
|
|
type: string
|
|
DESKTOP_VERSION:
|
|
description: "The desktop version to test"
|
|
required: true
|
|
|
|
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@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
name: instance-details.json
|
|
path: instance-details.json
|
|
retention-days: 1
|
|
|
|
calculate-commit-hash:
|
|
runs-on: ubuntu-22.04
|
|
outputs:
|
|
DESKTOP_SHA: ${{ steps.repo.outputs.DESKTOP_SHA }}
|
|
steps:
|
|
- name: cmt/checkout-desktop
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
ref: ${{ inputs.DESKTOP_VERSION }}
|
|
|
|
- name: cmt/calculate-mattermost-sha
|
|
id: repo
|
|
run: echo "DESKTOP_SHA=$(git rev-parse HEAD)" >> ${GITHUB_OUTPUT}
|
|
|
|
update-initial-status:
|
|
runs-on: ubuntu-22.04
|
|
needs:
|
|
- calculate-commit-hash
|
|
steps:
|
|
- uses: mattermost/actions/delivery/update-commit-status@2620a83b059b7218192636361299aadde81ae243
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
repository_full_name: mattermost/desktop
|
|
commit_sha: ${{ needs.calculate-commit-hash.outputs.DESKTOP_SHA }}
|
|
context: e2e/compatibility-matrix-testing
|
|
description: "Compatibility Matrix Testing for ${{ inputs.DESKTOP_VERSION }} version"
|
|
status: pending
|
|
|
|
# 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
|
|
needs:
|
|
- update-initial-status
|
|
strategy:
|
|
fail-fast: false
|
|
matrix: ${{ fromJson(inputs.CMT_MATRIX) }}
|
|
secrets: inherit
|
|
with:
|
|
runs-on: ${{ matrix.environment.runner }}
|
|
cmt: true
|
|
MM_TEST_SERVER_URL: ${{ matrix.server.url }}
|
|
DESKTOP_VERSION: ${{ inputs.DESKTOP_VERSION }}
|
|
MM_SERVER_VERSION: ${{ matrix.server.version }}
|
|
|
|
# We need to duplicate here in order to set the proper commit status
|
|
# https://mattermost.atlassian.net/browse/CLD-5815
|
|
update-failure-final-status:
|
|
runs-on: ubuntu-22.04
|
|
if: failure() || cancelled()
|
|
needs:
|
|
- calculate-commit-hash
|
|
- e2e
|
|
steps:
|
|
- uses: mattermost/actions/delivery/update-commit-status@2620a83b059b7218192636361299aadde81ae243
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
repository_full_name: mattermost/desktop
|
|
commit_sha: ${{ needs.calculate-commit-hash.outputs.DESKTOP_SHA }}
|
|
context: e2e/compatibility-matrix-testing
|
|
description: "Compatibility Matrix Testing for ${{ inputs.DESKTOP_VERSION }} version"
|
|
status: failure
|
|
|
|
# https://mattermost.atlassian.net/browse/CLD-5815
|
|
update-success-final-status:
|
|
runs-on: ubuntu-22.04
|
|
if: success()
|
|
needs:
|
|
- calculate-commit-hash
|
|
- e2e
|
|
steps:
|
|
- uses: mattermost/actions/delivery/update-commit-status@2620a83b059b7218192636361299aadde81ae243
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
repository_full_name: mattermost/desktop
|
|
commit_sha: ${{ needs.calculate-commit-hash.outputs.DESKTOP_SHA }}
|
|
context: e2e/compatibility-matrix-testing
|
|
description: "Compatibility Matrix Testing for ${{ inputs.DESKTOP_VERSION }} version"
|
|
status: success
|