From 5f31eced6772557d9c6ecb7598f5f3503e75b19b Mon Sep 17 00:00:00 2001 From: Kamil Sobol <5849952+sobolk@users.noreply.github.com> Date: Fri, 17 Jan 2025 10:08:24 -0800 Subject: [PATCH] fix build --- .github/workflows/accessibility_scan.yml | 4 ++-- .github/workflows/check_for_console_errors.yml | 2 +- .github/workflows/check_pr_for_broken_links.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/accessibility_scan.yml b/.github/workflows/accessibility_scan.yml index 793b0471cf6..343e95365ee 100644 --- a/.github/workflows/accessibility_scan.yml +++ b/.github/workflows/accessibility_scan.yml @@ -8,7 +8,7 @@ env: jobs: accessibility: name: Runs accessibility scan on changed pages - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout branch uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 @@ -32,7 +32,7 @@ jobs: const buildDir = process.env.BUILD_DIR; return getChangedPages({github, context, buildDir}); - name: Run site - run: | + run: | python -m http.server 3000 -d ${{ env.BUILD_DIR }} & sleep 5 - name: Run accessibility tests on changed/new MDX pages diff --git a/.github/workflows/check_for_console_errors.yml b/.github/workflows/check_for_console_errors.yml index d103ab66a73..ec2ad2c6d29 100644 --- a/.github/workflows/check_for_console_errors.yml +++ b/.github/workflows/check_for_console_errors.yml @@ -9,7 +9,7 @@ permissions: contents: read jobs: CheckConsoleErrors: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout repository uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 diff --git a/.github/workflows/check_pr_for_broken_links.yml b/.github/workflows/check_pr_for_broken_links.yml index 766801b41da..cc4d3ae6c62 100644 --- a/.github/workflows/check_pr_for_broken_links.yml +++ b/.github/workflows/check_pr_for_broken_links.yml @@ -7,7 +7,7 @@ env: BUILD_DIR: 'client/www/next-build' jobs: CheckPRLinks: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout repository uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6