Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/reusable-deploy-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,18 @@ jobs:

- name: Deploy Backends
run: serverless deploy --stage ${{ inputs.target }}

- name: Get CloudFront Distribution ID
id: get_dist_id
run: |
BUCKET_NAME="${{ secrets.COMPANY_ABBREVIATION }}-lara-frontend-${{ inputs.target }}"
DIST_ID=$(aws cloudfront list-distributions \
--query "DistributionList.Items[?Origins.Items[?DomainName=='${BUCKET_NAME}.s3.amazonaws.com']].Id" \
--output text)
echo "distribution_id=$DIST_ID" >> $GITHUB_OUTPUT

- name: Invalidate CloudFront cache
run: |
aws cloudfront create-invalidation \
--distribution-id ${{ steps.get_dist_id.outputs.distribution_id }} \
--paths "/*"
7 changes: 7 additions & 0 deletions .github/workflows/reusable-e2e-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,10 @@ jobs:
yarn
npx playwright install
npx playwright test

- name: Upload Playwright test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-test-logs
path: test-results
1 change: 1 addition & 0 deletions packages/e2e/tests/entry.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ URL ??= 'http://localhost:8080'
async function goto(page: Page, path: string = '') {
await page.goto(`${URL}${path}`)
const statusBar = page.locator('#status-bar')
await statusBar.waitFor({ timeout: 10000 })
await statusBar.hover()

const input = page.locator('#dev-login-user-id')
Expand Down