Add a pull request test script for GitHub Actions

Also remove useless submodule argument from checkout
This commit is contained in:
lifehackerhansol 2023-04-08 14:21:30 -07:00
parent b17331d796
commit 81dffe07df
No known key found for this signature in database
GPG Key ID: 80FB184AFC0B3B0E
2 changed files with 25 additions and 1 deletions

View File

@ -13,7 +13,6 @@ jobs:
- uses: actions/checkout@v3
with:
persist-credentials: false
submodules: recursive
- uses: ruby/setup-ruby@v1
with:

25
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Test site build
on:
pull_request:
branches: [ master ]
jobs:
doc-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- name: Install dependencies
run: bundle install
- name: Run Jekyll
# Build the site using Jekyll
run: bundle exec jekyll build