Document Azure usage (#812) #1162
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Check Docusaurus Build | |
on: push | |
jobs: | |
check-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: v18.18.0 | |
cache: npm | |
- name: Cache Node.js packages | |
id: cache-npm | |
uses: actions/[email protected] | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} | |
name: Install Dependencies | |
run: npm ci | |
- name: Build Docusaurus | |
run: npm run build 2> >(tee build.error) | |
- name: Check if build has warnings | |
run: cat build.error | grep "\[WARNING\]" && echo "::error::Fix the warnings" && exit 1 || exit 0 |