Skip to content

Commit d9ba965

Browse files
committed
ci: add mkdocs-build job
1 parent 5ea1142 commit d9ba965

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/mkdocs-build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: build and test
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, edited, ready_for_review]
6+
branches:
7+
- development
8+
- main
9+
10+
jobs:
11+
build-and-test-ros2:
12+
if: github.event.pull_request.draft == false
13+
14+
runs-on:
15+
- self-hosted
16+
- ${{ matrix.ros_distro }}
17+
18+
continue-on-error: true
19+
20+
strategy:
21+
matrix:
22+
ros_distro:
23+
- jazzy
24+
- humble
25+
26+
container:
27+
image: osrf/ros:${{ matrix.ros_distro }}-desktop-full
28+
29+
steps:
30+
- uses: actions/checkout@v4
31+
with:
32+
clean: true
33+
34+
- name: Install Poetry
35+
uses: snok/install-poetry@v1
36+
with:
37+
version: 2.1.1
38+
39+
- name: Install python dependencies
40+
run: poetry install --with docs
41+
42+
- name: Build docs
43+
shell: bash
44+
run: |
45+
poetry run mkdocs build --strict

0 commit comments

Comments
 (0)