-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (56 loc) · 1.41 KB
/
check-workspace.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
name: check-workspace
on:
workflow_call:
env:
CARGO_TERM_COLOR: always
jobs:
lint:
name: lint
runs-on: bwrc
steps:
- uses: actions/checkout@v3
- name: Check formatting
run: |
cargo fmt --check
- name: Lint
run: |
cargo hack --feature-powerset clippy --locked -- -D warnings
- name: Lint examples
run: |
cargo hack --feature-powerset clippy --locked -- -D warnings
working-directory: examples
check-docs:
name: check-docs
runs-on: bwrc
steps:
- uses: actions/checkout@v3
- name: Check docs
run: |
cargo hack --all rustdoc --all-features
env:
RUSTFLAGS: '-D warnings'
RUSTDOCFLAGS: '-D warnings'
test:
name: test
runs-on: [bwrc, nfs]
steps:
- uses: actions/checkout@v3
- name: Test
run: cargo test --locked --all-features
- name: Test examples
run: cargo test --locked --all-features
working-directory: examples
check-docs-site:
name: check-docs-site
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: docs/site/yarn.lock
- run: yarn install
working-directory: docs/site
- run: yarn build
working-directory: docs/site