36 lines
679 B
YAML
36 lines
679 B
YAML
name: Website CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- "website/**"
|
|
- ".github/workflows/website-ci.yml"
|
|
pull_request:
|
|
branches: ["*"]
|
|
paths:
|
|
- "website/**"
|
|
- ".github/workflows/website-ci.yml"
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./website
|
|
env:
|
|
LINGDOCS_NPM_TOKEN: ${{ secrets.LINGDOCS_NPM_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: "npm"
|
|
- run: |
|
|
npm install
|
|
npm run build
|
|
npm run test
|