-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (47 loc) · 1.77 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: test
on: [push]
jobs:
test-example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./ # For real world usage this should be replaced by "antaljanosbenjamin/[email protected]"
with:
file: test.tex
args: -pdf
- run: '(test -f test.pdf && echo PDF exists) || (echo PDF does not exist && exit 1)'
test-file-in-subdirectory:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./ # For real world usage this should be replaced by "antaljanosbenjamin/[email protected]"
with:
file: tests/subdir_test.tex
- run: '(test -f subdir_test.dvi && echo DVI exists) || (echo DVI does not exist && exit 1)'
test-output-directory:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./ # For real world usage this should be replaced by "antaljanosbenjamin/[email protected]"
with:
file: test.tex
output-directory: tests/output
- run: '(test -f tests/output/test.dvi && echo DVI exists) || (echo DVI does not exist && exit 1)'
test-args:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./ # For real world usage this should be replaced by "antaljanosbenjamin/[email protected]"
with:
file: test.tex
args: -help
test-full:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./ # For real world usage this should be replaced by "antaljanosbenjamin/[email protected]"
with:
file: tests/subdir_test.tex
output-directory: tests/outputpdf
args: -pdf
- run: '(test -f tests/outputpdf/subdir_test.pdf && echo PDF exists) || (echo PDF does not exist && exit 1)'