-
-
Notifications
You must be signed in to change notification settings - Fork 11
34 lines (26 loc) · 1019 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
32
33
name: Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container: asciidoctor/docker-asciidoctor:1.12
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build gem
run: gem build asciidoctor-lists.gemspec
- name: Rename gem
run: mv asciidoctor-lists-*.gem asciidoctor-lists.gem
- name: Install gem
run: gem install asciidoctor-lists.gem
- name: Build list-sample as PDF
run: asciidoctor-pdf -a allow-uri-read -r asciidoctor-lists samples/list-sample.adoc
- name: Build enhanced-rendering as PDF
run: asciidoctor-pdf -a allow-uri-read -r asciidoctor-lists samples/enhanced-rendering.adoc
- name: Build hide-if-empty-list-sample as PDF
run: asciidoctor-pdf -a allow-uri-read -r asciidoctor-lists samples/hide-if-empty-list-sample.adoc
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: samples
path: samples