Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2' # You can adjust this if needed
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- name: Run CI Script
run: script/cibuild
12 changes: 2 additions & 10 deletions script/cibuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

set -e

script/build
script/test

if test -e "./_site/index.html";then
echo "It builds!"
rm -Rf _site
else
echo "Huh. That's odd. The example site doesn't seem to build."
exit 1
fi

gem build minima.gemspec
rm -Rf _site
12 changes: 12 additions & 0 deletions script/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

set -e

script/build

if test -e "./_site/index.html";then
echo "Integration test passed: Site built successfully!"
else
echo "Integration test failed: The example site doesn't seem to build. _site/index.html not found."
exit 1
fi
Loading