Skip to content

Commit

Permalink
Update the workflow to use dynamic import instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
shammowla committed Oct 18, 2024
1 parent f2bc443 commit f39810d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const handleTestFailures = require('./.github/scripts/handle-test-failures.js');
await handleTestFailures({ github, context, browser: 'safari' });
const handleTestFailures = await import('./.github/scripts/handle-test-failures.js');
await handleTestFailures.default({ github, context, browser: 'safari' });
alloy-prod-e2e-firefox:
name: Firefox
Expand Down Expand Up @@ -242,8 +242,8 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const handleTestFailures = require('./.github/scripts/handle-test-failures.js');
await handleTestFailures({ github, context, browser: 'firefox' });
const handleTestFailures = await import('./.github/scripts/handle-test-failures.js');
await handleTestFailures.default({ github, context, browser: 'firefox' });
alloy-prod-e2e-chrome:
name: Chrome
Expand Down Expand Up @@ -318,5 +318,5 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const handleTestFailures = require('./.github/scripts/handle-test-failures.js');
await handleTestFailures({ github, context, browser: 'chrome' });
const handleTestFailures = await import('./.github/scripts/handle-test-failures.js');
await handleTestFailures.default({ github, context, browser: 'chrome' });

0 comments on commit f39810d

Please sign in to comment.