Skip to content

Commit 0f2d14f

Browse files
committed
Add test workflow.
1 parent 3fb0ee5 commit 0f2d14f

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/test-build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# .github/workflows/test-build.yml
2+
name: Build and Test Jekyll Site
3+
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: '3.1' # Match what you are using locally (adjust if needed)
22+
bundler-cache: true
23+
24+
- name: Install dependencies
25+
run: bundle install
26+
27+
- name: Build site
28+
run: bundle exec jekyll build --trace
29+
30+
- name: Test successful build
31+
run: test -d _site

0 commit comments

Comments
 (0)