-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (44 loc) · 1.33 KB
/
integration.yml
File metadata and controls
47 lines (44 loc) · 1.33 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Integration
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
integration:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
ruby-version: ['3.2', '3.3', '3.4', '4.0']
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Build and install gem
run: |
gem build scholarmarkdown.gemspec
gem install scholarmarkdown-*.gem --no-document
- name: Initialize ScholarMarkdown article
run: generate-scholarmarkdown my-article
- name: Install article dependencies
run: bundle install
working-directory: my-article
- name: Build article
run: bundle exec nanoc compile
working-directory: my-article
- name: Test development mode
run: |
rm -f guard.log
bundle exec guard --no-interactions > guard.log 2>&1 &
GUARD_PID=$!
sleep 5
cat guard.log
if grep -q ' - ERROR - ' guard.log; then exit 1; fi
kill -0 $GUARD_PID
kill $GUARD_PID
wait $GUARD_PID || true
working-directory: my-article