Skip to content

Commit 72bba2c

Browse files
ci: test build on PRs (#421)
* ci: test build on PRs Signed-off-by: Henry Schreiner <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 801d3de commit 72bba2c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test build
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
7+
permissions: {}
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup Ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: "3.3"
19+
bundler-cache: true
20+
- name: Build with Jekyll
21+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
22+
env:
23+
JEKYLL_ENV: production
24+
- name: Upload artifact
25+
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)