Skip to content

Bump svelte from 4.2.18 to 4.2.19 #1937

Bump svelte from 4.2.18 to 4.2.19

Bump svelte from 4.2.18 to 4.2.19 #1937

Workflow file for this run

name: Playwright Tests
on:
pull_request:
paths:
- 'sites/**'
# Cancel if a newer run is started
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
run_test:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Waiting for 200 from the Netlify Preview
uses: jakepartusch/wait-for-netlify-action@f1e137043864b9ab9034ae3a5adc1c108e3f1a48 # v1.4
id: waitFor200
with:
site_name: 'nf-core-main-site'
max_timeout: 180 # 3 Minutes
- name: determine the changed directory
id: determine_changed_directory
run: |
CHANGED_DIRECTORY=$(git diff --name-only HEAD~1 HEAD | grep 'sites/' | cut -d/ -f2 | uniq) >> $GITHUB_OUTPUT
- name: Loop through changed directories and run Playwright tests
run: |
# for dir in $CHANGED_DIRECTORY; do
npm run test -w sites/main-site
# done
env:
PLAYWRIGHT_TEST_BASE_URL: 'https://deploy-preview-${{github.event.pull_request.number}}--nf-core-main-site.netlify.app'
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 1