Skip to content

Commit d553182

Browse files
authored
Refine tests (#5)
1 parent 690b274 commit d553182

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.github/workflows/check.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,16 @@ jobs:
1919
registry: ghcr.io
2020
username: ${{ github.actor }}
2121
password: ${{ secrets.GITHUB_TOKEN }}
22-
- name: Run jabref-action
23-
uses: ./ # use local action
22+
- name: Check test/consistent.bib
23+
uses: ./
2424
with:
25-
bibfile: test/test.bib
25+
bibfile: test/consistent.bib
26+
- name: Check test/inconsistent.bib
27+
continue-on-error: true
28+
uses: ./
29+
id: inconsistent
30+
with:
31+
bibfile: test/inconsistent.bib
32+
- name: inconsistent failed?
33+
if: steps.inconsistent.outcome == 'success'
34+
run: exit 1

test/consistent.bib

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@article{one,
2+
author = {First}
3+
}
4+
5+
@article{two,
6+
author = {Second},
7+
}
File renamed without changes.

0 commit comments

Comments
 (0)