test commit
This commit is contained in:
parent
b112b6a09e
commit
d0479a402b
16
.github/workflows/e2e-functional.yml
vendored
16
.github/workflows/e2e-functional.yml
vendored
|
@ -7,6 +7,10 @@ on:
|
||||||
description: "Reference tag of the nightly build"
|
description: "Reference tag of the nightly build"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
trigger_type:
|
||||||
|
description: "Nightly Schedule Trigger"
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
@ -48,6 +52,7 @@ env:
|
||||||
WEBHOOK_URL: ${{ secrets.MM_DESKTOP_E2E_WEBHOOK_URL }}
|
WEBHOOK_URL: ${{ secrets.MM_DESKTOP_E2E_WEBHOOK_URL }}
|
||||||
ZEPHYR_API_KEY: ${{ secrets.MM_DESKTOP_E2E_ZEPHYR_API_KEY }}
|
ZEPHYR_API_KEY: ${{ secrets.MM_DESKTOP_E2E_ZEPHYR_API_KEY }}
|
||||||
BUILD_ID: ${{ github.run_id }}
|
BUILD_ID: ${{ github.run_id }}
|
||||||
|
TRIGGER_TYPE: ${{ inputs.trigger_type }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
e2e-linux:
|
e2e-linux:
|
||||||
|
@ -74,7 +79,10 @@ jobs:
|
||||||
}}
|
}}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Run E2E Tests
|
||||||
|
run: |
|
||||||
|
echo "Running E2E Tests..."
|
||||||
|
echo "Trigger Type: ${{ matrix.trigger_type }}"
|
||||||
- name: ci/checkout-repo
|
- name: ci/checkout-repo
|
||||||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||||
- name: ci/setup-node
|
- name: ci/setup-node
|
||||||
|
@ -95,7 +103,7 @@ jobs:
|
||||||
|
|
||||||
- name: Set Environment Variables
|
- name: Set Environment Variables
|
||||||
run: |
|
run: |
|
||||||
echo "*********", $BUILD_ID
|
|
||||||
if [ "${{ github.event_name }}" == "pull_request" ]; then
|
if [ "${{ github.event_name }}" == "pull_request" ]; then
|
||||||
echo "BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
|
echo "BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
|
||||||
echo "BUILD_SUFFIX=desktop-pr" >> $GITHUB_ENV
|
echo "BUILD_SUFFIX=desktop-pr" >> $GITHUB_ENV
|
||||||
|
@ -188,7 +196,7 @@ jobs:
|
||||||
|
|
||||||
- name: Set Environment Variables
|
- name: Set Environment Variables
|
||||||
run: |
|
run: |
|
||||||
echo "*********", $BUILD_ID
|
|
||||||
if [ "${{ github.event_name }}" == "pull_request" ]; then
|
if [ "${{ github.event_name }}" == "pull_request" ]; then
|
||||||
echo "BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
|
echo "BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
|
||||||
echo "BUILD_SUFFIX=desktop-pr" >> $GITHUB_ENV
|
echo "BUILD_SUFFIX=desktop-pr" >> $GITHUB_ENV
|
||||||
|
@ -284,7 +292,7 @@ jobs:
|
||||||
- name: Set Environment Variables
|
- name: Set Environment Variables
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "*********", $BUILD_ID
|
|
||||||
if [ "${{ github.event_name }}" == "pull_request" ]; then
|
if [ "${{ github.event_name }}" == "pull_request" ]; then
|
||||||
echo "BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
|
echo "BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
|
||||||
echo "BUILD_SUFFIX=desktop-pr" >> $GITHUB_ENV
|
echo "BUILD_SUFFIX=desktop-pr" >> $GITHUB_ENV
|
||||||
|
|
30
.github/workflows/nightly-builds.yaml
vendored
30
.github/workflows/nightly-builds.yaml
vendored
|
@ -1,6 +1,10 @@
|
||||||
name: nightly-builds
|
name: nightly-builds
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows: ["e2e-functional.yml"]
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '*/5 * * * *'
|
- cron: '*/5 * * * *'
|
||||||
|
@ -43,10 +47,26 @@ jobs:
|
||||||
# with:
|
# with:
|
||||||
# tag: ${{ needs.tag-nightly-build.outputs.tag }}
|
# tag: ${{ needs.tag-nightly-build.outputs.tag }}
|
||||||
|
|
||||||
|
# nightly-e2e:
|
||||||
|
# needs:
|
||||||
|
# - tag-nightly-build
|
||||||
|
# uses: ./.github/workflows/e2e-functional.yml
|
||||||
|
# secrets: inherit
|
||||||
|
# with:
|
||||||
|
# tag: ${{ needs.tag-nightly-build.outputs.tag }}
|
||||||
|
# trigger_type: ${{ github.event.inputs.trigger_event }}
|
||||||
|
|
||||||
nightly-e2e:
|
nightly-e2e:
|
||||||
needs:
|
runs-on: ubuntu-latest
|
||||||
- tag-nightly-build
|
needs: tag-nightly-build
|
||||||
uses: ./.github/workflows/e2e-functional.yml
|
steps:
|
||||||
secrets: inherit
|
- name: Trigger e2e-test.yml workflow
|
||||||
|
uses: aurelien-baudet/workflow-dispatch@v2.1.1
|
||||||
with:
|
with:
|
||||||
tag: ${{ needs.tag-nightly-build.outputs.tag }}
|
workflow: "e2e-functional.yml"
|
||||||
|
token: ${{ secrets.MATTERMOST_BUILD_GH_TOKEN }}
|
||||||
|
inputs: |
|
||||||
|
{
|
||||||
|
"tag": "${{ needs.tag-nightly-build.outputs.tag }}",
|
||||||
|
"trigger_event": "workflow_call"
|
||||||
|
}
|
Loading…
Reference in a new issue