forked from uyuni-project/uyuni
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.4 KB
/
yard-doc-test-framework.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
name: Generate YARD Documentation
on:
push:
branches:
- master
jobs:
generate_documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Install dependencies
run: |
sudo apt-get install -y rdoc
gem install yard yard-cucumber
- name: Generate .yard/config
run: |
mkdir $HOME/.yard
echo '--- !ruby/hash-with-ivars:SymbolHash
elements:
:load_plugins: true
:ignored_plugins: []
:autoload_plugins: []
:safe_mode: false
:"yard-cucumber":
language:
step_definitions: [ "Given", "When", "Then", "And", "But"]
menus: [ "features", "directories", "tags", "steps", "step definitions" ]
ivars:
:@symbolize_value: false%' > $HOME/.yard/config
- name: Generate YARD Documentation
run: |
cd testsuite
yard doc --protected --private features/step_definitions/*.rb features/support/*.rb features/support/**/*.rb features/**/*.feature features/**/**/*.feature
- name: Archive documentation as artifact
uses: actions/upload-artifact@v4
with:
name: yard-docs
path: testsuite/doc