test build id

This commit is contained in:
yasserfaraazkhan 2024-01-19 23:10:38 +05:30
parent 20a388bfa1
commit 539e8ebdab
3 changed files with 19 additions and 15 deletions

View file

@ -47,6 +47,7 @@ env:
AWS_REGION: "us-east-1" AWS_REGION: "us-east-1"
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 }}
jobs: jobs:
e2e-linux: e2e-linux:
@ -92,6 +93,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
@ -183,6 +185,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
@ -276,6 +279,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

View file

@ -27,21 +27,21 @@ jobs:
git push --tags --force git push --tags --force
echo "tag=$(jq -r .version package.json)" >> $GITHUB_OUTPUT echo "tag=$(jq -r .version package.json)" >> $GITHUB_OUTPUT
nightly-main: # nightly-main:
needs: # needs:
- tag-nightly-build # - tag-nightly-build
uses: ./.github/workflows/nightly-main.yml # uses: ./.github/workflows/nightly-main.yml
secrets: inherit # secrets: inherit
with: # with:
tag: ${{ needs.tag-nightly-build.outputs.tag }} # tag: ${{ needs.tag-nightly-build.outputs.tag }}
nightly-rainforest: # nightly-rainforest:
needs: # needs:
- tag-nightly-build # - tag-nightly-build
uses: ./.github/workflows/nightly-rainforest.yml # uses: ./.github/workflows/nightly-rainforest.yml
secrets: inherit # secrets: inherit
with: # with:
tag: ${{ needs.tag-nightly-build.outputs.tag }} # tag: ${{ needs.tag-nightly-build.outputs.tag }}
nightly-e2e: nightly-e2e:
needs: needs:

View file

@ -16,7 +16,7 @@ const WEBSERVER_PORT = process.env.WEBSERVER_PORT ?? 9001;
module.exports = merge(base, { module.exports = merge(base, {
entry: { entry: {
e2e: glob.sync('./e2e/specs/**/*.test.js'), e2e: glob.sync('./e2e/specs/**/copy_link.test.js'),
}, },
output: { output: {
path: path.resolve(__dirname, 'dist/tests'), path: path.resolve(__dirname, 'dist/tests'),