branch: elpa/flymake-collection
commit c2376adb2bf67b085d01840a05995a6678f2b3a6
Author: Mohsin Kaleem <mohk...@kisara.moe>
Commit: Mohsin Kaleem <mohk...@kisara.moe>

    ci/cd: Add build pipeline
---
 .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++
 README.org                  |  6 +++++-
 tests/checkers/Dockerfile   |  2 +-
 3 files changed, 42 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000000..2b576966d5
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,36 @@
+---
+name: build
+
+on:
+  push:
+    branches: master
+  pull_request:
+    branches: master
+  schedule:
+    - cron: "0 13 * * *"
+
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        emacs_branch: [emacs-28, master]
+
+    steps:
+      - uses: actions/checkout@v2
+      - name: Run test suite
+        run: make test EMACS_BRANCH="${{ matrix.emacs_branch }}"
+
+  lint:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        emacs_version: [28.1, snapshot]
+
+    steps:
+      - uses: actions/checkout@v2
+      - uses: purcell/setup-emacs@master
+        with:
+          version: ${{ matrix.emacs_version }}
+      - name: Lint elisp
+        run: make lint
diff --git a/README.org b/README.org
index 09aee749fe..3585685ccf 100644
--- a/README.org
+++ b/README.org
@@ -1,7 +1,11 @@
 #+TITLE: flymake-collection
 #+AUTHOR: Mohsin Kaleem
 
-#+html: <p align="right"><a href="https://melpa.org/#/flymake-collection";><img 
align="center" alt="MELPA" 
src="https://melpa.org/packages/flymake-collection-badge.svg"/></a></p>
+#+html: <p align="right">
+#+html: <a href="https://github.com/mohkale/flymake-collection"; alt="lint" 
style="margin-right: 4px;"><img 
src="https://github.com/mohkale/flymake-collection/workflows/lint/badge.svg"; 
/></a>
+#+html: <a href="https://github.com/mohkale/flymake-collection"; alt="lint" 
style="margin-right: 4px;"><img 
src="https://github.com/mohkale/flymake-collection/workflows/test/badge.svg"; 
/></a>
+#+html: <a href="https://melpa.org/#/flymake-collection";><img align="center" 
alt="MELPA" src="https://melpa.org/packages/flymake-collection-badge.svg"/></a>
+#+html: </p>
 
 
 
diff --git a/tests/checkers/Dockerfile b/tests/checkers/Dockerfile
index 8a43b66778..dbc7c9f19c 100644
--- a/tests/checkers/Dockerfile
+++ b/tests/checkers/Dockerfile
@@ -18,7 +18,7 @@ RUN apt-get update && \
       libjansson4 \
       libjansson-dev \
       git && \
-    git clone -b emacs-28 --single-branch git://git.savannah.gnu.org/emacs.git 
. && \
+    git clone -b "${EMACS_BRANCH:-emacs-28}" --single-branch 
git://git.savannah.gnu.org/emacs.git . && \
     sed -i 's/# deb-src/deb-src/' /etc/apt/sources.list && \
     apt-get update && \
     apt-get build-dep -y emacs && \

Reply via email to