Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
make all && ./wyag-tests.sh