Skip to content

Commit 59dfea2

Browse files
Refine Ruby version handling and workflow clarity
This commit introduces the following changes: - Removes comments from the HTMLProofer GitHub Actions workflow file for conciseness. - Adds a `.ruby-version` file specifying Ruby 3.0.0 for consistent Ruby versioning across environments. - Updates the GitHub Actions workflow (`ruby/setup-ruby` step) to automatically use the Ruby version defined in the `.ruby-version` file, removing the explicit version setting. These changes improve the clarity of the workflow and ensure consistent Ruby version management.
1 parent 814c65a commit 59dfea2

3 files changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/html-proofer.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: HTMLProofer
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
proof:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
13+
- name: Set up Ruby
14+
uses: ruby/setup-ruby@v1
15+
with:
16+
bundler-cache: true # Runs bundle install and caches gems
17+
18+
- name: Cache HTMLProofer results
19+
uses: actions/cache@v3
20+
with:
21+
path: tmp/.htmlproofer
22+
key: ${{ runner.os }}-htmlproofer-${{ github.head_ref || github.run_id }}
23+
restore-keys: |
24+
${{ runner.os }}-htmlproofer-
25+
26+
- name: Build Jekyll site
27+
run: bundle exec jekyll build
28+
29+
- name: Run HTMLProofer
30+
run: htmlproofer ./_site --allow-hash-href

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0.0

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
source 'https://rubygems.org'
22

33
gem 'jekyll', '4.3.1'
4+
gem 'html-proofer'
45

56
group :jekyll_plugins do
67
gem 'jekyll-archives'

0 commit comments

Comments
 (0)