Skip to content

Commit

Permalink
[docs] Add a workflow to do a preflight verification of build on each…
Browse files Browse the repository at this point in the history
… PR (#999)

Tested by opening this PR and verifying that the verify build workflow
succeeded. Say verify one more time, I dare you...
  • Loading branch information
mnvr authored Mar 11, 2024
2 parents 89d761a + 976a76a commit f759ce0
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docs-verify-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "Verify build (docs)"

# Preflight build of docs. This allows us to ensure that yarn build is
# succeeding before we merge the PR into main.

on:
# Run on every push to a branch other than main that changes docs/
push:
branches-ignore: [main]
paths:
- "docs/**"
- ".github/workflows/docs-verify-build.yml"

jobs:
verify-build:
runs-on: ubuntu-latest

defaults:
run:
working-directory: docs

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
cache-dependency-path: "docs/yarn.lock"

- name: Install dependencies
run: yarn install

- name: Build production site
run: yarn build

0 comments on commit f759ce0

Please sign in to comment.