GH Pages/GH Actions: update workflow for dry-run #20
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 Jekyll Build | |
on: | |
pull_request: | |
# Allow manually triggering the workflow. | |
workflow_dispatch: | |
jobs: | |
#### TEST THAT THE GH PAGES SITE GETS BUILT WITHOUT ERRORS #### | |
test: | |
name: "Test GHPages site" | |
if: github.repository == 'WordPress/Requests' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
# Use the version as per https://pages.github.com/versions/. | |
ruby-version: 2.7.4 | |
bundler-cache: true | |
- name: Test building the GH Pages site | |
run: bundle exec jekyll build |