Merge pull request #1068 from Ishavyas9/main #1234
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: Pull Request Checks | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
merge_group: | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-20.04 | ||
env: | ||
CI: true | ||
NODE_ENV: prod | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16.14.0' | ||
cache: 'npm' | ||
- name: 'Create env file' | ||
run: | | ||
touch .env | ||
echo "HOST=${{ secrets.TYPESENSE_HOST }}" >> .env | ||
echo "API=${{ secrets.PUBLIC_APY_TYPESENSE }}" >> .env | ||
- name: Docusaurus Webpack cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: node_modules/.cache | ||
key: ${{ runner.os }}-webpack-cache | ||
- name: Install dependencies | ||
run: npm install --legacy-peer-deps | ||
- name: Build the Docusaurus site | ||
env: | ||
NODE_OPTIONS: "--max-old-space-size=8192" | ||
run: npm run build | ||
spellcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: codespell-project/actions-codespell@master | ||
name: Check spelling | ||
with: | ||
skip: "*.svg,*.js,*.map,*.css,*.scss,*.webp" | ||
ignore_words_list: aks,atleast,cros,ddress,fiel,ist,nd,ot,pullrequest,ser,shttp,wast,fo,tht,extention,seldomly,delt,cruzer,plack,secur,te,testng,TestNG,FLE,fle,afterAll,afterall,Nome,nome,lod,pressEnter,pressenter,softwares | ||
path: docs |