Enact the fifth rules update for SR2024 #790
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
env: | |
# ruby/setup-ruby@v1 does not offer a way to change the cached gems path. | |
# See https://github.com/ruby/setup-ruby/issues/291 | |
GLOBAL_GEMS: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true | |
cache-version: 2 | |
- name: Build & Validate | |
run: rake validate | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build container | |
run: docker-compose build | |
- name: Build site in container | |
run: docker-compose run docs rake build |