![dependabot[bot]](/assets/img/avatar_default.png)
Bumps the github-actions-updates group with 10 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4.1.1` | `4.2.2` | | [actions/setup-node](https://github.com/actions/setup-node) | `4.0.2` | `4.2.0` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4.3.1` | `4.6.0` | | [actions/cache](https://github.com/actions/cache) | `4.0.2` | `4.2.0` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `4.1.4` | `4.1.8` | | [EnricoMi/publish-unit-test-result-action](https://github.com/enricomi/publish-unit-test-result-action) | `2.3.0` | `2.18.0` | | [actions/setup-python](https://github.com/actions/setup-python) | `5.0.0` | `5.4.0` | | [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) | `1.7.0` | `4.1.0` | | [mattermost/action-mattermost-notify](https://github.com/mattermost/action-mattermost-notify) | `60f5da6e1796b033cf5a038b57031fa011962e27` | `d317daebed2a792679f68fd0248557a8d21d82b6` | | [ossf/scorecard-action](https://github.com/ossf/scorecard-action) | `2.3.1` | `2.4.0` | Updates `actions/checkout` from 4.1.1 to 4.2.2 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](b4ffde65f4...11bd71901b
) Updates `actions/setup-node` from 4.0.2 to 4.2.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](60edb5dd54...1d0ff469b7
) Updates `actions/upload-artifact` from 4.3.1 to 4.6.0 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](5d5d22a312...65c4c4a1dd
) Updates `actions/cache` from 4.0.2 to 4.2.0 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c45773b62...1bd1e32a3b
) Updates `actions/download-artifact` from 4.1.4 to 4.1.8 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](c850b930e6...fa0a91b85d
) Updates `EnricoMi/publish-unit-test-result-action` from 2.3.0 to 2.18.0 - [Release notes](https://github.com/enricomi/publish-unit-test-result-action/releases) - [Commits](a3caf02865...170bf24d20
) Updates `actions/setup-python` from 5.0.0 to 5.4.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](0a5c615913...42375524e2
) Updates `aws-actions/configure-aws-credentials` from 1.7.0 to 4.1.0 - [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases) - [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md) - [Commits](67fbcbb121...ececac1a45
) Updates `mattermost/action-mattermost-notify` from 60f5da6e1796b033cf5a038b57031fa011962e27 to d317daebed2a792679f68fd0248557a8d21d82b6 - [Release notes](https://github.com/mattermost/action-mattermost-notify/releases) - [Commits](60f5da6e17...d317daebed
) Updates `ossf/scorecard-action` from 2.3.1 to 2.4.0 - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](0864cf1902...62b2cac7ed
) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: EnricoMi/publish-unit-test-result-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: aws-actions/configure-aws-credentials dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-updates - dependency-name: mattermost/action-mattermost-notify dependency-type: direct:production dependency-group: github-actions-updates - dependency-name: ossf/scorecard-action 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@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
|
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@746563b58e737a17a8ceb00b84a813b9e6e1b236
|
|
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@746563b58e737a17a8ceb00b84a813b9e6e1b236
|
|
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@746563b58e737a17a8ceb00b84a813b9e6e1b236
|
|
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
|