-
Notifications
You must be signed in to change notification settings - Fork 189
38 lines (30 loc) · 884 Bytes
/
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
---
name: ci
on: [pull_request]
jobs:
ci:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
path: guides
- uses: actions/checkout@v2
with:
repository: rubygems/rubygems
path: rubygems
ref: 3.4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
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" 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