2021-08-18 11:54:00 +00:00
|
|
|
name: Website CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-08-18 12:07:40 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2021-08-18 11:54:00 +00:00
|
|
|
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:
|
2022-10-17 10:51:02 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
2021-08-18 11:54:00 +00:00
|
|
|
with:
|
2022-10-12 08:09:23 +00:00
|
|
|
node-version: 16
|
2021-08-18 11:54:00 +00:00
|
|
|
- run: yarn install
|
|
|
|
- run: yarn build
|
|
|
|
- run: yarn test
|