3 Commits

Author SHA1 Message Date
063fdca1ca Fix typo in pull_request workflow
All checks were successful
BuildTest / Build and test (push) Successful in 3m56s
We cannot spell the word "branches"
2024-03-15 15:31:17 +00:00
cead310efc Merge pull request 'And support for Gitea workflow' (#2) from workflows-demo into main
All checks were successful
BuildTest / Build and test (push) Successful in 3m50s
Reviewed-on: http://diskstation1.local:10000/mgrettondann/nuweb/pulls/2
2024-03-15 15:07:41 +00:00
8dd1620936 And support for Gitea workflow
Adds a workflow that will build and test whenever any changes are pushed
to the main branch, or a PR is opened against the main branch.
2024-03-15 15:04:57 +00:00

View File

@@ -0,0 +1,33 @@
name: "BuildTest"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: "Build and test"
runs-on: ubuntu-latest
steps:
- name: "Install build deps"
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get -y --no-install-recommends install build-essential \
texlive-latex-base texlive-latex-recommended
- name: "Checkout repo"
uses: actions/checkout@v3
- name: "Bootstrap nuweb"
run: make nuweb
- name: "Make nuweb.tex"
run: make nuweb.tex nuwebdoc.tex
- name: "Build again"
run: make nuweb
- name: "Run tests"
run: make check