-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (57 loc) · 1.61 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
53
54
55
56
57
58
59
60
# 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_LINUX: "nix --store ~/nix_store develop '.#ci'"
DEV_SHELL_MACOS: "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: Restore Nix Cache
uses: actions/cache@v3
continue-on-error: true
with:
path: |
~/nix_store
key: nix-${{ hashFiles('**/flake.lock') }}-ubuntu-latest
- name: Build Lix Dependencies
shell: bash
run: |
${{ env.DEV_SHELL_LINUX }}
- name: Install Node Deps
shell: bash
run: |
${{ env.DEV_SHELL_LINUX }} --command npm install
- name: Lint Documentation
shell: bash
run: |
${{ env.DEV_SHELL_LINUX }} --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/cargo-deny-action@v1
with:
manifest-path: ./Cargo.toml
command: check