Skip to content

Commit d987c3b

Browse files
committed
testing workflow
1 parent 48e3739 commit d987c3b

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/marketing-app-ci.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,41 @@ on:
88
paths:
99
- 'frontend/**'
1010

11+
12+
env:
13+
APPLITOOLS_BATCH_ID: ${{ github.event.pull_request.head.sha || github.sha }}
14+
1115
jobs:
1216
# Initializes common variables and environment prior to executing other jobs
1317
setup:
1418
runs-on: ubuntu-24.04
1519
outputs:
16-
eyes-batch-id: ${{ github.event.pull_request.head.sha || github.sha }}
20+
eyes-batch-id: ${{ env.APPLITOOLS_BATCH_ID }}
21+
steps:
22+
- name: Generate Eyes Batch ID
23+
run: echo "uuid=$(uuidgen)" >> $GITHUB_OUTPUT
1724

1825
marketing:
1926
needs: setup
2027
uses: ./.github/workflows/orig-marketing-app-ci.yml
2128
secrets: inherit
2229
with:
23-
eyes-batch-id: ${{ needs.setup.outputs.eyes-batch-id }}
30+
eyes-batch-id: ${{ env.APPLITOOLS_BATCH_ID }}
2431

2532
component-library:
2633
needs: setup
2734
uses: ./.github/workflows/component-library-ci.yml
2835
secrets: inherit
2936
with:
30-
eyes-batch-id: ${{ needs.setup.outputs.eyes-batch-id }}
37+
eyes-batch-id: ${{ env.APPLITOOLS_BATCH_ID }}
3138

32-
eyes-close-batch:
33-
# Close the eyes batch after all distributed eyes tests have completed
39+
teardown:
3440
needs: [setup, marketing, component-library]
3541
if: always()
3642
runs-on: ubuntu-24.04
3743
steps:
44+
# Close the eyes batch after all distributed eyes tests have completed
3845
- name: Update Applitools batch status
3946
shell: bash
4047
run: |
41-
curl -X POST -d -H "accept:*/*" https://eyesapi.applitools.com/api/externals/github/servers/github.com/commit/${{ needs.setup.outputs.eyes-batch-id }}/complete?apiKey=${{secrets.APPLITOOLS_API_KEY}}
48+
curl -X POST -d -H "accept:*/*" https://eyesapi.applitools.com/api/externals/github/servers/github.com/commit/${{ env.APPLITOOLS_BATCH_ID }}/complete?apiKey=${{secrets.APPLITOOLS_API_KEY}}

0 commit comments

Comments
 (0)