From 81dffe07df9a3b98b6398370c21274c1e1af8021 Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Sat, 8 Apr 2023 14:21:30 -0700 Subject: [PATCH] Add a pull request test script for GitHub Actions Also remove useless submodule argument from checkout --- .github/workflows/publish.yml | 1 - .github/workflows/test.yml | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1c843b3757..f93355774a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,7 +13,6 @@ jobs: - uses: actions/checkout@v3 with: persist-credentials: false - submodules: recursive - uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000000..112a08124d --- /dev/null +++ b/.github/workflows/test.yml @@ -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