diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml new file mode 100644 index 0000000..f8ec310 --- /dev/null +++ b/.github/workflows/makefile.yml @@ -0,0 +1,24 @@ +name: Makefile CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: purcell/setup-emacs@master + with: + version: 30.2 # Picked arbitrarily, specified for stability + + - name: make + run: make all + + - name: Run pre-commit + run: ./pre-commit diff --git a/README.org b/README.org index e0695f1..cb7e655 100644 --- a/README.org +++ b/README.org @@ -9,3 +9,9 @@ Wyag is a [[https://en.wikipedia.org/wiki/Literate_programming][literate program $ cd write-yourself-a-git $ make all #+end_src + +If you'd like to set up the pre-commit file for git, then: +#+begin_src shell + $ cp pre-commit .git/hooks/ + $ chmod +x .git/hooks/pre-commit +#+end_src diff --git a/pre-commit b/pre-commit new file mode 100755 index 0000000..d45fdba --- /dev/null +++ b/pre-commit @@ -0,0 +1,2 @@ +#!/bin/sh +make all && ./wyag-tests.sh