ansible-nas/.github/workflows/docs-test.yml

41 lines
853 B
YAML
Raw Normal View History

2022-09-20 22:00:57 +00:00
---
name: Test Website Deployment
on:
pull_request:
branches:
- master
2023-02-15 11:30:29 +00:00
- fix-docs-test
2023-02-15 11:31:54 +00:00
push:
branches: [fix-docs-test]
2023-02-15 11:21:03 +00:00
workflow_dispatch:
2022-09-20 22:00:57 +00:00
jobs:
lint:
name: Lint Docs
runs-on: ubuntu-latest
steps:
2022-09-21 22:57:05 +00:00
- uses: actions/checkout@v3
2022-09-20 22:00:57 +00:00
- name: Lint docs
uses: articulate/actions-markdownlint@v1
with:
version: 0.32.2
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
2023-02-15 11:36:00 +00:00
defaults:
run:
working-directory: website
2022-09-20 22:00:57 +00:00
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
2023-02-15 11:14:24 +00:00
cache-dependency-path: website/package-lock.json
2022-09-20 22:00:57 +00:00
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test build website
run: yarn build