emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/company 0bcdfda 1/4: Add GitHub Actions checks


From: ELPA Syncer
Subject: [elpa] externals/company 0bcdfda 1/4: Add GitHub Actions checks
Date: Tue, 10 Aug 2021 20:57:07 -0400 (EDT)

branch: externals/company
commit 0bcdfda608b8878836d12f602874ac1d7159477d
Author: YE <yet@ego.team>
Commit: YE <yet@ego.team>

    Add GitHub Actions checks
---
 .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++++
 Makefile                 |  7 ++++++-
 2 files changed, 48 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..fff44e9
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,42 @@
+name: CI
+
+on:
+  push:
+    paths:
+      - '**.el'
+      - '**ci.yml'
+      - 'Makefile'
+    branches:
+      - master
+
+  pull_request:
+    paths:
+      - '**.el'
+      - '**ci.yml'
+      - 'Makefile'
+    branches:
+      - master
+
+jobs:
+  check:
+    runs-on: ubuntu-20.04
+
+    strategy:
+      fail-fast: false
+      matrix:
+        emacs_version: [25.1, 25.3, 26.3, 27.2, snapshot]
+
+    steps:
+      - name: Setup Emacs
+        uses: purcell/setup-emacs@v3.0
+        with:
+          version: ${{ matrix.emacs_version }}
+
+      - name: Checkout Company
+        uses: actions/checkout@v2
+
+      - name: Run tests
+        run: make test-batch
+
+      - name: Run compilation
+        run: make compile-warn
diff --git a/Makefile b/Makefile
index 9357506..cd3e1d6 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ elpa: *.el
        tar cvf company-$$version.tar --mode 644 "$$dir"
 
 clean:
-       @rm -rf company-*/ company-*.tar company-*.tar.bz2 *.elc ert.el
+       @rm -rf company-*/ company-*.tar company-*.tar.bz2 *.elc ert.el 
test/*.elc
 
 test:
        ${EMACS} -Q -nw -L . -l test/all.el \
@@ -33,3 +33,8 @@ test-batch:
 
 compile:
        ${EMACS} -Q --batch -L . -f batch-byte-compile company.el company-*.el
+
+compile-warn:
+       ${EMACS} -Q --batch -L . \
+       --eval "(setq byte-compile-error-on-warn t)" \
+       -f batch-byte-compile company*.el test/*.el



reply via email to

[Prev in Thread] Current Thread [Next in Thread]