Skip to content

feat: Use Flickr loader #35

feat: Use Flickr loader

feat: Use Flickr loader #35

Workflow file for this run

name: E2E Testing
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
e2e-testing:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- uses: actions/cache@v4
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-playwright-
- uses: actions/cache@v4
id: astro-cache
env:
files: >-
${{ hashFiles('astro.config.ts') }}
with:
path: |
dist
.cache
key: ${{ runner.os }}-astro-${{ env.files }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-astro-
- name: Install dependencies
uses: ./.github/actions/pnpm-install
- name: Install Playwright
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install chromium --with-deps
- name: Build Astro site
run: pnpm run build
env:
IS_PLAYWRIGHT: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FLICKR_API_KEY: ${{ secrets.FLICKR_API_KEY }}
- name: Run Playwright
run: pnpm run e2e:build
- uses: actions/upload-artifact@v4
if: ${{ cancelled() || failure() }}
with:
name: playwright-traces-${{ github.run_id }}-${{ github.run-attempt }}
path: playwright-report/
retention-days: 1