Add pull request test to actions workflows (nomencl) #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test build | |
on: | |
pull_request: | |
branches: | |
- master | |
- nomencl | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v4 | |
- name: Compile LaTeX document | |
if: github.base_ref == 'master' | |
uses: xu-cheng/latex-action@v3 | |
with: | |
root_file: edengths.tex | |
args: "-pdfps -file-line-error -halt-on-error -interaction=nonstopmode" | |
- name: Compile LaTeX document | |
if: github.base_ref == 'nomencl' | |
uses: xu-cheng/latex-action@v3 | |
with: | |
root_file: edengths.tex | |
args: "-pdfps -file-line-error -halt-on-error -interaction=nonstopmode" | |
pre_compile: | | |
pdflatex edengths | |
chmod 777 makenomencl.sh | |
./makenomencl.sh |