-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 915 Bytes
/
ruby.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
# Built from: https://github.com/actions/starter-workflows/blob/main/ci/ruby.yml and
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-ruby
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: ruby
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
# from https://github.com/gjtorikian/html-proofer/blob/main/README.md#caching-with-continuous-integration
- name: Cache HTMLProofer
id: cache-htmlproofer
uses: actions/cache@v4
with:
path: tmp/.htmlproofer
key: ${{ runner.os }}-htmlproofer
- run: bundle config set --local with ci
- run: bundle install
- run: bundle exec rake