-
Notifications
You must be signed in to change notification settings - Fork 191
42 lines (34 loc) · 1.13 KB
/
ci.yml
File metadata and controls
42 lines (34 loc) · 1.13 KB
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
---
name: ci
on: [pull_request]
permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: guides
persist-credentials: false
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: ruby/rubygems
path: rubygems
ref: "4.0"
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@7372622e62b60b3cb750dcd2b9e32c247ffec26a # v1.302.0
with:
ruby-version: 4.0
bundler-cache: true
working-directory: guides
- name: Build jekyll
run: bundle exec jekyll build
working-directory: guides
- name: Generate command guide
run: RUBYOPT="--disable-gems -I../rubygems/lib" RUBYGEMS_DIR="../rubygems" bundle exec rake command_guide && git diff --exit-code
working-directory: guides
- name: Lint generated markdown
run: bundle exec mdl --rules MD009,MD012 command-reference.md
working-directory: guides