Use Ruby 3 #78
Workflow file for this run
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: Test PRs | |
on: [pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Ruby 3.2 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2.2' | |
- name: Inject slug/short variables | |
uses: rlespinasse/github-slug-action@v3.x | |
- name: Set the REPOSITORY_URL_SITE environment variable | |
run: echo "REPOSITORY_URL_SITE=https://github.com/$GITHUB_REPOSITORY" >> $GITHUB_ENV | |
- name: Build the site | |
run: | | |
gem install bundler | |
bundle config path vendor/bundle | |
bundle install | |
bundle exec jekyll build --baseurl=/${{ env.GITHUB_REPOSITORY_NAME_PART }} | |
- name: Test the HTML | |
run: bash scripts/test/html_proofer_staging.sh |