CLD-5770 - Fix smoketests workflow (#23713)
* fix: Fix proper status update since job.status depicts current job status which is always success * Rename status check for smoketests * Allow localhost origin for local testing * Increase instance size for smoketest job, better status check name --------- Co-authored-by: Antonis Stamatiou <stamatiou.antonis@gmail.com>
Этот коммит содержится в:
28
.github/workflows/e2e-tests-ci.yml
поставляемый
28
.github/workflows/e2e-tests-ci.yml
поставляемый
@@ -22,7 +22,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repository_full_name: ${{ github.repository }}
|
repository_full_name: ${{ github.repository }}
|
||||||
commit_sha: ${{ inputs.commit_sha || github.sha }}
|
commit_sha: ${{ inputs.commit_sha || github.sha }}
|
||||||
context: ci/e2e-tests
|
context: E2E Tests/smoketests
|
||||||
description: E2E tests for mattermost server app
|
description: E2E tests for mattermost server app
|
||||||
status: pending
|
status: pending
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ jobs:
|
|||||||
npm run check
|
npm run check
|
||||||
|
|
||||||
smoketests:
|
smoketests:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-latest-8-cores
|
||||||
needs:
|
needs:
|
||||||
- cypress-check
|
- cypress-check
|
||||||
- playwright-check
|
- playwright-check
|
||||||
@@ -104,9 +104,9 @@ jobs:
|
|||||||
echo "Cypress run completed with $CYPRESS_FAILURES failures"
|
echo "Cypress run completed with $CYPRESS_FAILURES failures"
|
||||||
[ "$CYPRESS_FAILURES" = "0" ]
|
[ "$CYPRESS_FAILURES" = "0" ]
|
||||||
|
|
||||||
update-final-status:
|
update-failure-final-status:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
if: always()
|
if: failure() || cancelled()
|
||||||
needs:
|
needs:
|
||||||
- smoketests
|
- smoketests
|
||||||
steps:
|
steps:
|
||||||
@@ -116,6 +116,22 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repository_full_name: ${{ github.repository }}
|
repository_full_name: ${{ github.repository }}
|
||||||
commit_sha: ${{ inputs.commit_sha || github.sha }}
|
commit_sha: ${{ inputs.commit_sha || github.sha }}
|
||||||
context: ci/e2e-tests
|
context: E2E Tests/smoketests
|
||||||
description: E2E tests for mattermost server app
|
description: E2E tests for mattermost server app
|
||||||
status: ${{ job.status }}
|
status: failure
|
||||||
|
|
||||||
|
update-success-final-status:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
if: success()
|
||||||
|
needs:
|
||||||
|
- smoketests
|
||||||
|
steps:
|
||||||
|
- uses: mattermost/actions/delivery/update-commit-status@main
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
with:
|
||||||
|
repository_full_name: ${{ github.repository }}
|
||||||
|
commit_sha: ${{ inputs.commit_sha || github.sha }}
|
||||||
|
context: E2E Tests/smoketests
|
||||||
|
description: E2E tests for mattermost server app
|
||||||
|
status: success
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
MM_SERVICESETTINGS_SITEURL: "http://server:8065"
|
MM_SERVICESETTINGS_SITEURL: "http://server:8065"
|
||||||
MM_SERVICESETTINGS_ENABLELOCALMODE: "true"
|
MM_SERVICESETTINGS_ENABLELOCALMODE: "true"
|
||||||
|
MM_SERVICESETTINGS_ALLOWCORSFROM: "http://localhost:8065"
|
||||||
MM_PLUGINSETTINGS_ENABLED: "true"
|
MM_PLUGINSETTINGS_ENABLED: "true"
|
||||||
MM_PLUGINSETTINGS_ENABLEUPLOADS: "true"
|
MM_PLUGINSETTINGS_ENABLEUPLOADS: "true"
|
||||||
MM_PLUGINSETTINGS_AUTOMATICPREPACKAGEDPLUGINS: "true"
|
MM_PLUGINSETTINGS_AUTOMATICPREPACKAGEDPLUGINS: "true"
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user