Skip to content

Commit 6603b1b

Browse files
committed
2 parents 478060b + 186514f commit 6603b1b

File tree

3 files changed

+20
-32
lines changed

3 files changed

+20
-32
lines changed

.github/workflows/rake.yml

+6-21
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: rake
44

55
on:
66
push:
7-
branches: [ master, main ]
7+
branches: [ master, main ]
88
tags: [ v* ]
99
pull_request:
1010

@@ -16,17 +16,17 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
ruby: [ '2.6', '2.5', '2.4' ]
19+
ruby: [ '2.7', '2.6', '2.5', '2.4' ]
2020
os: [ ubuntu-latest, windows-latest, macos-latest ]
2121
experimental: [ false ]
2222
include:
23-
- ruby: '2.7'
23+
- ruby: '3.0'
2424
os: 'ubuntu-latest'
2525
experimental: true
26-
- ruby: '2.7'
26+
- ruby: '3.0'
2727
os: 'windows-latest'
2828
experimental: true
29-
- ruby: '2.7'
29+
- ruby: '3.0'
3030
os: 'macos-latest'
3131
experimental: true
3232
steps:
@@ -35,19 +35,7 @@ jobs:
3535
- uses: ruby/setup-ruby@v1
3636
with:
3737
ruby-version: ${{ matrix.ruby }}
38-
39-
- if: matrix.os == 'macos-latest'
40-
run: brew install autoconf automake libtool
41-
42-
- uses: actions/cache@v2
43-
with:
44-
path: vendor/bundle
45-
key: bundle-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }}
46-
restore-keys: bundle-${{ matrix.os }}-${{ matrix.ruby }}
47-
48-
- run: bundle config set path 'vendor/bundle'
49-
50-
- run: bundle install --jobs 4 --retry 3
38+
bundler-cache: true
5139

5240
- name: install plantuml ubuntu
5341
if: matrix.os == 'ubuntu-latest'
@@ -66,9 +54,6 @@ jobs:
6654
- if: matrix.os == 'windows-latest'
6755
run: cinst -y plantuml
6856

69-
- if: matrix.os == 'macos-latest'
70-
run: brew install autoconf automake libtool
71-
7257
- run: bundle exec rake
7358

7459
tests-passed:

.rubocop.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This project follows the Ribose OSS style guide.
2+
# https://github.com/riboseinc/oss-guides
3+
# All project-specific additions and overrides should be specified in this file.
4+
5+
inherit_from:
6+
- https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml

spec/asciidoctor/validate_spec.rb

+8-11
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,21 @@
1717
mock_pdf
1818
Metanorma::Compile
1919
.new
20-
.compile("spec/assets/xref_error.adoc", type: "iho", :"agree-to-terms" => true)
20+
.compile("spec/assets/xref_error.adoc", type: "iho", no_install_fonts: true)
2121
end.to(change { File.exist?("spec/assets/xref_error.err") }
2222
.from(false).to(true))
2323
end
2424
end
2525

2626
it "warns about missing workgroup" do
27-
FileUtils.rm_f "test.err"
28-
Asciidoctor.convert(<<~"INPUT", backend: :iho, header_footer: true)
29-
#{VALIDATING_BLANK_HDR}
27+
FileUtils.rm_f "test.err"
28+
Asciidoctor.convert(<<~"INPUT", backend: :iho, header_footer: true)
29+
#{VALIDATING_BLANK_HDR}
3030
31-
== Clause 1
31+
== Clause 1
3232
33-
Subclause
34-
INPUT
35-
expect(File.read("test.err")).to include "Missing workgroup attribute for document"
33+
Subclause
34+
INPUT
35+
expect(File.read("test.err")).to include "Missing workgroup attribute for document"
3636
end
37-
38-
3937
end
40-

0 commit comments

Comments
 (0)