forked from dimforge/rapier.rs
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.24 KB
/
ci.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
name: Rapier CI build
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
check-code-snippets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Linux dependencies
uses: ./.github/actions/install-linux-deps
- name: Code snippets compilation check + tests
run: cd docs-examples && cargo test
check-injection:
runs-on: ubuntu-latest
env:
PUBLISH_MODE: 1
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16.17
- name: dump infos
run: yarn -v ; node -v ; yarn node -v
- name: install dependencies
run: yarn install --immutable --immutable-cache --check-cache
- name: dump infos
run: yarn -v ; yarn run docusaurus -V ; node -v ; yarn node -v
- name: Check template generation
run: ./generate_user_guides.sh
- name: Archive templates
uses: actions/upload-artifact@v4
with:
name: templates_injected
path: |
docs/user_guides/templates_injected
- name: diff
run: git diff
- name: Check template generation
run: yarn build