-
Notifications
You must be signed in to change notification settings - Fork 4
31 lines (31 loc) · 978 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Build feature branch
on:
# Manual trigger for feature branch
workflow_dispatch:
branches-ignore:
- gh-pages
# Push trigger for feature branch
push:
branches-ignore:
- gh-pages
jobs:
test:
runs-on: ubuntu-latest
steps:
# It is recommended to use specific versions
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- uses: ruby/setup-ruby@ee26e27437bde475b19a6bf8cb73c9fa658876a2 # v1.134.0
with:
ruby-version: '2.7'
bundler-cache: true
# This action builds the feature branch ephemerally
# to prove that nothing is broken
- name: Build feature branch
# `prod` is the name of the output directory
run: JEKYLL_ENV=preview LC_ALL=C.UTF-8 bundle exec jekyll build -d test