-
Notifications
You must be signed in to change notification settings - Fork 140
56 lines (46 loc) · 1.37 KB
/
pullrequest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Build & Deploy (Pull Request)
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout submodules
uses: actions/checkout@v3
with:
repository: ManticoreGamesInc/mkdocs-material
ref: manticore
path: mkdocs-material
# - name: Set up Python 3.8
# uses: actions/[email protected]
# with:
# python-version: 3.8
# cache: "pip"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm
- run: npm install
- name: Lint Paths
run: npm run lint:paths
- name: Lint Markdown
uses: DavidAnson/markdownlint-cli2-action@v10
with:
globs: "src/**/*.md"
- name: Wait for the Netlify Preview
uses: jakepartusch/[email protected]
id: netlify
with:
site_name: "manticore-docs"
max_timeout: 520
- name: Audit URLs using Lighthouse
uses: treosh/[email protected]
env:
LHCI_GITHUB_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
with:
urls: |
${{ steps.netlify.outputs.url }}
${{ steps.netlify.outputs.url }}/api/
uploadArtifacts: true
temporaryPublicStorage: true