pashto-dictionary/.github/workflows/website-ci.yml

36 lines
679 B
YAML
Raw Normal View History

2024-08-14 19:30:10 +00:00
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