-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.32 KB
/
docs.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
# Metadata for the actions workflow
name: "Docs CI"
on:
push:
branches: ["main"]
pull_request:
branches: ["*"]
# Environment variables that will be set on all runners
env:
DEV_SHELL: "nix develop '.#ci'"
# Configuration for individual jobs
jobs:
# This job checks the formatting of the code and other artifacts.
formatting:
name: "Check Docs Formatting"
runs-on: "ubuntu-latest"
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Lix
shell: bash
run: |
curl -sSf -L https://install.lix.systems/lix | sh -s -- install --no-confirm
- name: Build Lix Dependencies
shell: bash
run: |
${{ env.DEV_SHELL }}
- name: Install Node Deps
shell: bash
run: |
${{ env.DEV_SHELL }} --command npm install
- name: Lint Documentation
shell: bash
run: |
${{ env.DEV_SHELL }} --command npx prettier --check .
licensing:
name: "Check Licenses"
runs-on: "ubuntu-latest"
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: recursive
- uses: EmbarkStudios/[email protected]
with:
manifest-path: ./Cargo.toml
command: check