Skip to content

chore: update github action dependency #PLA-2658 (#2948) #1219

chore: update github action dependency #PLA-2658 (#2948)

chore: update github action dependency #PLA-2658 (#2948) #1219

name: Botonic docs tests
on:
push:
paths:
- 'docs/**'
- '.github/workflows/botonic-docs-tests.yml'
jobs:
botonic-core-tests:
name: Botonic docs tests
runs-on: ubuntu-latest
env:
DOCS: docs
GOOGLE_OPTIMIZE_ID: ${{ secrets.GOOGLE_OPTIMIZE_ID }}
SEGMENT_DOCS_API_KEY: ${{ secrets.SEGMENT_DOCS_API_KEY }}
steps:
- name: Checking out to current branch
uses: actions/checkout@v2
- name: Setting up node
uses: actions/setup-node@v2-beta
with:
node-version: '16'
- name: Setting up cache
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dev dependencies
run: (cd ./$DOCS && npm install -D)
- name: Build
run: (cd ./$DOCS && npm run build)
- name: Verify lint
run: (cd ./$DOCS && npm run lint_ci)