Skip to content

Commit 5f28ed3

Browse files
authored
Merge pull request #2 from wfdb/tp/test_build
Add workflow to test build.
2 parents 3fb0ee5 + 99dff3a commit 5f28ed3

2 files changed

Lines changed: 36 additions & 2 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

Gemfile.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ GEM
4545
logger
4646
faraday-net_http (3.4.0)
4747
net-http (>= 0.5.0)
48-
ffi (1.17.2-arm64-darwin)
48+
ffi (1.17.2)
4949
forwardable-extended (2.6.0)
5050
gemoji (4.1.0)
5151
github-pages (232)
@@ -232,14 +232,16 @@ GEM
232232
rb-inotify (~> 0.9, >= 0.9.10)
233233
logger (1.6.6)
234234
mercenary (0.3.6)
235+
mini_portile2 (2.8.8)
235236
minima (2.5.1)
236237
jekyll (>= 3.5, < 5.0)
237238
jekyll-feed (~> 0.9)
238239
jekyll-seo-tag (~> 2.1)
239240
minitest (5.25.5)
240241
net-http (0.6.0)
241242
uri
242-
nokogiri (1.18.8-arm64-darwin)
243+
nokogiri (1.18.8)
244+
mini_portile2 (~> 2.8.2)
243245
racc (~> 1.4)
244246
octokit (4.25.1)
245247
faraday (>= 1, < 3)
@@ -278,6 +280,7 @@ GEM
278280

279281
PLATFORMS
280282
arm64-darwin-21
283+
x86_64-linux
281284

282285
DEPENDENCIES
283286
github-pages

0 commit comments

Comments
 (0)