-
Notifications
You must be signed in to change notification settings - Fork 43
62 lines (50 loc) · 1.68 KB
/
ci-yardoc.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
61
62
name: "CI - Documentation Check"
on:
push:
paths:
# NOTE: GitHub Actions do not allow using YAML references, the same path
# list is used below for the pull request event. Keep both lists in sync!!
# this file as well
- .github/workflows/ci-yardoc.yml
# all Ruby files
- service/Gemfile*
- service/*.gemspec
- service/**.rb
# the D-Bus introspection files
- doc/dbus/**.xml
pull_request:
paths:
# NOTE: GitHub Actions do not allow using YAML references, the same path
# list is used above for the push event. Keep both lists in sync!!
# this file as well
- .github/workflows/ci-yardoc.yml
# all Ruby files
- service/Gemfile*
- service/*.gemspec
- service/**.rb
# the D-Bus introspection files
- doc/dbus/**.xml
jobs:
ruby_doc:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Refresh repositories
run: sudo apt-get update
- name: Install Ruby development files and XML tooling
run: sudo apt-get install -y --no-install-recommends ca-certificates gcc g++ libaugeas-dev libssl-dev make xmlstarlet
# this only works in Ubuntu...
- uses: ruby/setup-ruby@v1
with:
working-directory: ./service
# the current TW version
ruby-version: "3.2"
# runs 'bundle install' and caches installed gems automatically
bundler-cache: true
- name: Generate doc
working-directory: ./service
run: bundle exec yardoc --fail-on-warning
- name: Check that introspected API and its docs have not diverged
working-directory: ./doc
run: make check