Skip to content

Bump mermaid from 11.9.0 to 11.10.0 #4186

Bump mermaid from 11.9.0 to 11.10.0

Bump mermaid from 11.9.0 to 11.10.0 #4186

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # 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@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 1