-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (29 loc) · 1015 Bytes
/
ci.yml
File metadata and controls
37 lines (29 loc) · 1015 Bytes
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
#
# This workflow builds the site on pull requests to the main branch, to ensure that, prior to deployment,
# the site can be successfully built without errors. This also verifies linting and style guides.
#
name: Continuous Integration
on:
pull_request:
branches:
- main
jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 12.x
# Install using the frozen lockfile, to maximize speed.
- name: Install dependancies
run: yarn install --frozen-lockfile
# Verify the style guides.
- name: Lint codebase
run: yarn lint
# Build the Docusaurus source to static files.
# If this command succeeds, a valid build can be produced.
- name: Build
run: yarn build