From 1846265eeb7a0dd10c5d3bd76d6687fab0b77be7 Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 07:28:20 -0700 Subject: [PATCH 01/18] step name consistency --- .github/workflows/deploy-pr-preview.yml | 30 ++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy-pr-preview.yml b/.github/workflows/deploy-pr-preview.yml index e3d41eef8f..7698d7c1e3 100644 --- a/.github/workflows/deploy-pr-preview.yml +++ b/.github/workflows/deploy-pr-preview.yml @@ -8,7 +8,7 @@ on: - opened - reopened - synchronize - - closed + - closed paths-ignore: - '.docsearch/**' - 'README.md' @@ -26,46 +26,46 @@ jobs: deploy-pr-preview: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - name: Checkout Repository + - name: Checkout + uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-node@v4 - name: Setup Node.js + + - name: Setup Node.js + uses: actions/setup-node@v4 with: node-version: 18.x - - uses: actions/cache@v4 - name: Cache NPM Packages + - name: Cache NPM Packages + uses: actions/cache@v4 id: cache-npm-packages with: path: | **/node_modules key: ${{ runner.os }}-${{ hashFiles('**/package.json') }} - - uses: actions/cache@v4 - name: Cache Build + - name: Cache Build + uses: actions/cache@v4 id: cache-build with: path: | build key: ${{ runner.os }}-${{ github.sha }} - - - name: Set preview path + - name: Set Preview Path run: echo "PREVIEW_PATH=sauce-docs/pr-preview/pr-${{ github.event.number }}" >> "$GITHUB_ENV" - + - name: Install Dependencies if: steps.cache-npm-packages.outputs.cache-hit != 'true' && github.event.action != 'closed' # Skip if the PR was closed run: | npm install - - name: Run Build + - name: Build if: steps.cache-build.outputs.cache-hit != 'true' && github.event.action != 'closed' # Skip if the PR was closed run: | npm run build - - name: Deploy PR preview + - name: Deploy PR uses: rossjrw/pr-preview-action@v1 with: - source-dir: ./build/ \ No newline at end of file + source-dir: ./build/ From 79412c27408c3bb7038e6850113ccf0159b7426f Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 07:29:49 -0700 Subject: [PATCH 02/18] obsolete cache step --- .github/workflows/deploy-pr-preview.yml | 11 ++--------- .nvmrc | 1 + 2 files changed, 3 insertions(+), 9 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/deploy-pr-preview.yml b/.github/workflows/deploy-pr-preview.yml index 7698d7c1e3..0d02a494dc 100644 --- a/.github/workflows/deploy-pr-preview.yml +++ b/.github/workflows/deploy-pr-preview.yml @@ -34,15 +34,8 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 18.x - - - name: Cache NPM Packages - uses: actions/cache@v4 - id: cache-npm-packages - with: - path: | - **/node_modules - key: ${{ runner.os }}-${{ hashFiles('**/package.json') }} + node-version-file: '.nvmrc' + cache: 'npm' - name: Cache Build uses: actions/cache@v4 diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000000..3f430af82b --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v18 From 749505da28a55f0e389c2ad1ddc24838721f9da1 Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 07:31:13 -0700 Subject: [PATCH 03/18] unnecessary build cache --- .github/workflows/deploy-pr-preview.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy-pr-preview.yml b/.github/workflows/deploy-pr-preview.yml index 0d02a494dc..207bb70b1f 100644 --- a/.github/workflows/deploy-pr-preview.yml +++ b/.github/workflows/deploy-pr-preview.yml @@ -37,24 +37,16 @@ jobs: node-version-file: '.nvmrc' cache: 'npm' - - name: Cache Build - uses: actions/cache@v4 - id: cache-build - with: - path: | - build - key: ${{ runner.os }}-${{ github.sha }} - - name: Set Preview Path run: echo "PREVIEW_PATH=sauce-docs/pr-preview/pr-${{ github.event.number }}" >> "$GITHUB_ENV" - name: Install Dependencies - if: steps.cache-npm-packages.outputs.cache-hit != 'true' && github.event.action != 'closed' # Skip if the PR was closed + if: github.event.action != 'closed' # Skip if the PR was closed run: | npm install - name: Build - if: steps.cache-build.outputs.cache-hit != 'true' && github.event.action != 'closed' # Skip if the PR was closed + if: github.event.action != 'closed' # Skip if the PR was closed run: | npm run build From fe335c7312d2836c5d6a4d01a1dfb36c1de6d977 Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 07:32:10 -0700 Subject: [PATCH 04/18] inconsistent step conditions --- .github/workflows/deploy-pr-preview.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/deploy-pr-preview.yml b/.github/workflows/deploy-pr-preview.yml index 207bb70b1f..b67def702f 100644 --- a/.github/workflows/deploy-pr-preview.yml +++ b/.github/workflows/deploy-pr-preview.yml @@ -8,7 +8,6 @@ on: - opened - reopened - synchronize - - closed paths-ignore: - '.docsearch/**' - 'README.md' @@ -41,12 +40,10 @@ jobs: run: echo "PREVIEW_PATH=sauce-docs/pr-preview/pr-${{ github.event.number }}" >> "$GITHUB_ENV" - name: Install Dependencies - if: github.event.action != 'closed' # Skip if the PR was closed run: | npm install - name: Build - if: github.event.action != 'closed' # Skip if the PR was closed run: | npm run build From c5d37cfc2ad2ba26f0e5d3e9fd710598be2dac0c Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 07:33:47 -0700 Subject: [PATCH 05/18] Revert "inconsistent step conditions" This reverts commit fe335c7312d2836c5d6a4d01a1dfb36c1de6d977. --- .github/workflows/deploy-pr-preview.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy-pr-preview.yml b/.github/workflows/deploy-pr-preview.yml index b67def702f..207bb70b1f 100644 --- a/.github/workflows/deploy-pr-preview.yml +++ b/.github/workflows/deploy-pr-preview.yml @@ -8,6 +8,7 @@ on: - opened - reopened - synchronize + - closed paths-ignore: - '.docsearch/**' - 'README.md' @@ -40,10 +41,12 @@ jobs: run: echo "PREVIEW_PATH=sauce-docs/pr-preview/pr-${{ github.event.number }}" >> "$GITHUB_ENV" - name: Install Dependencies + if: github.event.action != 'closed' # Skip if the PR was closed run: | npm install - name: Build + if: github.event.action != 'closed' # Skip if the PR was closed run: | npm run build From 49100f03a265522c51fad7cc37751b703061037c Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 07:35:02 -0700 Subject: [PATCH 06/18] optimize checkout --- .github/workflows/deploy-pr-preview.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy-pr-preview.yml b/.github/workflows/deploy-pr-preview.yml index 207bb70b1f..55601a8653 100644 --- a/.github/workflows/deploy-pr-preview.yml +++ b/.github/workflows/deploy-pr-preview.yml @@ -28,8 +28,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Setup Node.js uses: actions/setup-node@v4 From 9903a086c232cb38b49b511b2631f8407a6f44af Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 07:37:56 -0700 Subject: [PATCH 07/18] remove build job, as the build cannot be shared --- .github/workflows/deploy-to-production.yml | 38 ---------------------- 1 file changed, 38 deletions(-) diff --git a/.github/workflows/deploy-to-production.yml b/.github/workflows/deploy-to-production.yml index 6103523c63..9d3da400bb 100644 --- a/.github/workflows/deploy-to-production.yml +++ b/.github/workflows/deploy-to-production.yml @@ -17,44 +17,6 @@ env: ALGOLIA_KEY: ${{secrets.ALGOLIA_KEY}} jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - name: Checkout Repository - with: - fetch-depth: 0 - - uses: actions/setup-node@v4 - name: Setup Node.js - with: - node-version: 18.x - - - uses: actions/cache@v4 - name: Cache NPM Packages - id: cache-npm-packages - with: - path: | - **/node_modules - key: ${{ runner.os }}-${{ hashFiles('**/package.json') }} - - - name: Install Dependencies - if: steps.cache-npm-packages.outputs.cache-hit != 'true' - run: | - npm install - - - uses: actions/cache@v4 - name: Cache Build - id: cache-build - with: - path: | - build - key: ${{ runner.os }}-${{ github.sha }} - - - name: Run Build - if: steps.cache-build.outputs.cache-hit != 'true' - run: | - npm run build - deploy-staging: needs: build runs-on: ubuntu-latest From eb1862c902ac7e0314511bf632373b0cdfe78f37 Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 07:39:12 -0700 Subject: [PATCH 08/18] remove unnecessary condition --- .github/workflows/deploy-to-production.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy-to-production.yml b/.github/workflows/deploy-to-production.yml index 9d3da400bb..50cdb77fd3 100644 --- a/.github/workflows/deploy-to-production.yml +++ b/.github/workflows/deploy-to-production.yml @@ -20,7 +20,6 @@ jobs: deploy-staging: needs: build runs-on: ubuntu-latest - if: ${{ github.ref == 'refs/heads/main' }} steps: - uses: actions/checkout@v4 @@ -78,7 +77,6 @@ jobs: deploy-production: needs: deploy-staging runs-on: ubuntu-latest - if: ${{ github.ref == 'refs/heads/main' }} env: NO_INDEX: false From 327963b02a01b2db478ca9872e2fb35b487b87f1 Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 07:40:08 -0700 Subject: [PATCH 09/18] break down env settings --- .github/workflows/deploy-to-production.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-to-production.yml b/.github/workflows/deploy-to-production.yml index 50cdb77fd3..4422091d56 100644 --- a/.github/workflows/deploy-to-production.yml +++ b/.github/workflows/deploy-to-production.yml @@ -12,7 +12,6 @@ on: workflow_dispatch: env: - NO_INDEX: true ALGOLIA_APP_ID: ${{secrets.ALGOLIA_APP_ID}} ALGOLIA_KEY: ${{secrets.ALGOLIA_KEY}} @@ -20,6 +19,8 @@ jobs: deploy-staging: needs: build runs-on: ubuntu-latest + env: + NO_INDEX: true steps: - uses: actions/checkout@v4 From ae722b833c6420d773d7cb2780faf3e7b2f0522e Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 07:44:01 -0700 Subject: [PATCH 10/18] improve staging pipeline --- .github/workflows/deploy-to-production.yml | 49 ++++++++-------------- 1 file changed, 17 insertions(+), 32 deletions(-) diff --git a/.github/workflows/deploy-to-production.yml b/.github/workflows/deploy-to-production.yml index 4422091d56..25a5365eac 100644 --- a/.github/workflows/deploy-to-production.yml +++ b/.github/workflows/deploy-to-production.yml @@ -23,56 +23,41 @@ jobs: NO_INDEX: true steps: - - uses: actions/checkout@v4 - name: Checkout Repository - with: - fetch-depth: 0 - - uses: actions/setup-node@v4 - name: Setup Node.js + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 with: - node-version: 18.x - - name: Install Python + node-version-file: '.nvmrc' + cache: 'npm' + + - name: Setup Python uses: actions/setup-python@v2 with: python-version: 3.7 - - run: pip install crcmod - name: Install crcmod - - name: Set up Cloud SDK + + - name: Install CRCMOD + run: pip install crcmod + + - name: Setup Cloud SDK uses: 'google-github-actions/setup-gcloud@v0' with: version: '290.0.1' project_id: ${{ secrets.RUN_PROJECT }} service_account_key: ${{ secrets.RUN_SA_KEY }} - - uses: actions/cache@v4 - name: Cache NPM Packages - id: cache-npm-packages - with: - path: | - **/node_modules - key: ${{ runner.os }}-${{ hashFiles('**/package.json') }} - - - uses: actions/cache@v4 - name: Cache Build - id: cache-build - with: - path: | - build - key: ${{ runner.os }}-${{ github.sha }} - - name: Install Dependencies - if: steps.cache-npm-packages.outputs.cache-hit != 'true' run: | npm install - - name: Run Build - if: steps.cache-build.outputs.cache-hit != 'true' + - name: Build run: | npm run build - - name: Deploy to Bucket + - name: Deploy + working-directory: build run: |- - cd build gsutil -m rsync -R -d . ${{ secrets.GCS_BUCKET }} deploy-production: From 20740a947cf4183d121f2d432e10d2ec62be49df Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 07:46:49 -0700 Subject: [PATCH 11/18] improve production pipeline --- .github/workflows/deploy-to-production.yml | 47 ++++++++-------------- 1 file changed, 16 insertions(+), 31 deletions(-) diff --git a/.github/workflows/deploy-to-production.yml b/.github/workflows/deploy-to-production.yml index 25a5365eac..e4ba84ca01 100644 --- a/.github/workflows/deploy-to-production.yml +++ b/.github/workflows/deploy-to-production.yml @@ -67,20 +67,23 @@ jobs: NO_INDEX: false steps: - - uses: actions/checkout@v4 - name: Checkout Repository - with: - fetch-depth: 0 - - uses: actions/setup-node@v4 - name: Setup Node.js + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 with: - node-version: 18.x - - name: Install Python + node-version-file: '.nvmrc' + cache: 'npm' + + - name: Setup Python uses: actions/setup-python@v2 with: python-version: 3.7 - - run: pip install crcmod - name: Install crcmod + + - name: Install CRCMOD + run: pip install crcmod + - name: Set up Cloud SDK uses: 'google-github-actions/setup-gcloud@v0' with: @@ -88,33 +91,15 @@ jobs: project_id: ${{ secrets.RUN_PROJECT_PROD }} service_account_key: ${{ secrets.RUN_SA_KEY_PROD }} - - uses: actions/cache@v4 - name: Cache NPM Packages - id: cache-npm-packages - with: - path: | - **/node_modules - key: ${{ runner.os }}-${{ hashFiles('**/package.json') }} - - - uses: actions/cache@v4 - name: Cache Build - id: cache-build - with: - path: | - build - key: ${{ runner.os }}-${{ github.sha }} - - name: Install Dependencies - if: steps.cache-build.outputs.cache-hit != 'true' run: | npm install - - name: Run Build - if: steps.cache-build.outputs.cache-hit != 'true' + - name: Build run: | npm run build - - name: Deploy to Bucket + - name: Deploy + working-directory: build run: |- - cd build gsutil -m rsync -R -d . ${{ secrets.GCS_PROD_BUCKET }} From a77fd13782f1da2d92858f0db764f481b347b357 Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 07:50:49 -0700 Subject: [PATCH 12/18] update gcloud setup --- .github/workflows/deploy-to-production.yml | 26 +++++++++++++++------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-to-production.yml b/.github/workflows/deploy-to-production.yml index e4ba84ca01..c6f8ba8d5b 100644 --- a/.github/workflows/deploy-to-production.yml +++ b/.github/workflows/deploy-to-production.yml @@ -40,12 +40,17 @@ jobs: - name: Install CRCMOD run: pip install crcmod - - name: Setup Cloud SDK - uses: 'google-github-actions/setup-gcloud@v0' + - name: Google Cloud Login + uses: google-github-actions/auth@v2 + with: + credentials_json: '${{ secrets.RUN_SA_KEY }}' + + - name: Setup Google Cloud SDK + uses: 'google-github-actions/setup-gcloud@v2' with: - version: '290.0.1' project_id: ${{ secrets.RUN_PROJECT }} - service_account_key: ${{ secrets.RUN_SA_KEY }} + env: + CLOUDSDK_PYTHON: ${{ env.pythonLocation }}/python - name: Install Dependencies run: | @@ -84,12 +89,17 @@ jobs: - name: Install CRCMOD run: pip install crcmod - - name: Set up Cloud SDK - uses: 'google-github-actions/setup-gcloud@v0' + - name: Google Cloud Login + uses: google-github-actions/auth@v2 + with: + credentials_json: '${{ secrets.RUN_SA_KEY_PROD }}' + + - name: Setup Google Cloud SDK + uses: 'google-github-actions/setup-gcloud@v2' with: - version: '290.0.1' project_id: ${{ secrets.RUN_PROJECT_PROD }} - service_account_key: ${{ secrets.RUN_SA_KEY_PROD }} + env: + CLOUDSDK_PYTHON: ${{ env.pythonLocation }}/python - name: Install Dependencies run: | From bd62ba443428f30045034cb77b6fe70c9ec357f6 Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 07:52:54 -0700 Subject: [PATCH 13/18] bump python action --- .github/workflows/deploy-to-production.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-to-production.yml b/.github/workflows/deploy-to-production.yml index c6f8ba8d5b..069b3b7895 100644 --- a/.github/workflows/deploy-to-production.yml +++ b/.github/workflows/deploy-to-production.yml @@ -33,9 +33,9 @@ jobs: cache: 'npm' - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: - python-version: 3.7 + python-version: '3.12' - name: Install CRCMOD run: pip install crcmod @@ -82,9 +82,9 @@ jobs: cache: 'npm' - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: - python-version: 3.7 + python-version: '3.12' - name: Install CRCMOD run: pip install crcmod From de0eda2349a82eb1ee2e565ad482a8abe9d1f802 Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 07:53:13 -0700 Subject: [PATCH 14/18] remove crc mod step --- .github/workflows/deploy-to-production.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/deploy-to-production.yml b/.github/workflows/deploy-to-production.yml index 069b3b7895..44cc89ef92 100644 --- a/.github/workflows/deploy-to-production.yml +++ b/.github/workflows/deploy-to-production.yml @@ -37,9 +37,6 @@ jobs: with: python-version: '3.12' - - name: Install CRCMOD - run: pip install crcmod - - name: Google Cloud Login uses: google-github-actions/auth@v2 with: @@ -86,9 +83,6 @@ jobs: with: python-version: '3.12' - - name: Install CRCMOD - run: pip install crcmod - - name: Google Cloud Login uses: google-github-actions/auth@v2 with: From 49852affaa5e72fa3e4c792d9925ba8b7c46add1 Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 07:53:33 -0700 Subject: [PATCH 15/18] remove obsolete condition --- .github/workflows/deploy-to-production.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy-to-production.yml b/.github/workflows/deploy-to-production.yml index 44cc89ef92..6b36b60c38 100644 --- a/.github/workflows/deploy-to-production.yml +++ b/.github/workflows/deploy-to-production.yml @@ -17,7 +17,6 @@ env: jobs: deploy-staging: - needs: build runs-on: ubuntu-latest env: NO_INDEX: true From 7040e9c60599a56278394729e1d4fa59503133d7 Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 08:13:35 -0700 Subject: [PATCH 16/18] consitent step names --- .github/workflows/link-checker.yml | 22 +++++++++++++++------- .github/workflows/vale-linter.yml | 7 +++++-- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml index 8537d178df..d32df27055 100644 --- a/.github/workflows/link-checker.yml +++ b/.github/workflows/link-checker.yml @@ -21,27 +21,35 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: actions/setup-node@v4 + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 with: - node-version: 18.x - - uses: actions/setup-python@v5 + node-version-file: '.nvmrc' + cache: 'npm' + + - name: Setup Python + uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.12' + - name: Build and Run Docusaurus Site working-directory: ./ run: | npm install && npm run build # Expose website cd build/ && python3 -m http.server 8000 & + - name: Install Test Dependencies run: | npm install + - name: Set GitHub Action Job URL run: | echo $GITHUB_RUN_ID + - name: Start Link Checker Script run: | npm start -- $GITHUB_RUN_ID diff --git a/.github/workflows/vale-linter.yml b/.github/workflows/vale-linter.yml index 911ae46872..e61426ad3c 100644 --- a/.github/workflows/vale-linter.yml +++ b/.github/workflows/vale-linter.yml @@ -6,8 +6,11 @@ jobs: name: runner / vale runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: errata-ai/vale-action@reviewdog + - name: Checkout + uses: actions/checkout@v4 + + - name: Lint + uses: errata-ai/vale-action@reviewdog with: reporter: github-pr-review level: error From 4ef7f46f7b870a81c3314209591dc092c0045551 Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 08:19:04 -0700 Subject: [PATCH 17/18] clearer steps --- .github/workflows/link-checker.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml index d32df27055..713c100a14 100644 --- a/.github/workflows/link-checker.yml +++ b/.github/workflows/link-checker.yml @@ -13,10 +13,6 @@ env: SLACK_LINK: ${{secrets.SLACK_LINK}} GITLAB_TOKEN: ${{secrets.GITLAB_TOKEN}} -defaults: - run: - working-directory: tests/sauce-docs-checker - jobs: test: runs-on: ubuntu-latest @@ -35,21 +31,25 @@ jobs: with: python-version: '3.12' - - name: Build and Run Docusaurus Site - working-directory: ./ + - name: Install Dependencies run: | - npm install && npm run build - # Expose website - cd build/ && python3 -m http.server 8000 & + npm install - - name: Install Test Dependencies + - name: Build run: | - npm install + npm run build - - name: Set GitHub Action Job URL + - name: Serve Docs + working-directory: build run: | - echo $GITHUB_RUN_ID + python3 -m http.server 8000 & + + - name: Install Test Dependencies + working-directory: tests/sauce-docs-checker + run: | + npm install - - name: Start Link Checker Script + - name: Check Links + working-directory: tests/sauce-docs-checker run: | npm start -- $GITHUB_RUN_ID From 83d69762d46e5a131f20da15169bd12e5df88131 Mon Sep 17 00:00:00 2001 From: Alex Plischke Date: Tue, 27 Aug 2024 08:19:21 -0700 Subject: [PATCH 18/18] redundant workflow prefix --- .github/workflows/link-checker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml index 713c100a14..ea56f096eb 100644 --- a/.github/workflows/link-checker.yml +++ b/.github/workflows/link-checker.yml @@ -1,4 +1,4 @@ -name: Sauce Docs Link Checker +name: Link Checker on: pull_request: