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

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

[nongnu] elpa/webpaste bd2bf6a 281/298: github-actions: Set up github ac


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste bd2bf6a 281/298: github-actions: Set up github actions and undercover for unit tests
Date: Thu, 9 Dec 2021 19:00:30 -0500 (EST)

branch: elpa/webpaste
commit bd2bf6ae601a4fbacdc5bbfa06fd4262b4846f39
Author: Elis Hirwing <elis@hirwing.se>
Commit: Elis Hirwing <elis@hirwing.se>

    github-actions: Set up github actions and undercover for unit tests
---
 .github/workflows/unit-tests.yml | 44 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
new file mode 100644
index 0000000..0834a74
--- /dev/null
+++ b/.github/workflows/unit-tests.yml
@@ -0,0 +1,44 @@
+name: "Unit tests"
+
+on:
+  pull_request:
+  push:
+    paths-ignore:
+      - '**.org'
+      - '.dir-locals.el'
+    branches:
+      - master
+
+jobs:
+  build:
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [ ubuntu-latest, macos-latest ]
+        emacs_version: [ 26.1, 26.2, 26.3, 27.1, snapshot ]
+    steps:
+      - uses: actions/checkout@v2
+
+      - uses: purcell/setup-emacs@master
+        with:
+          version: ${{ matrix.emacs_version }}
+
+      - name: Install cask
+        run: nix-env -f '<nixpkgs>' -iA cask
+        # Cask was marked to only be supported on Linux and not macOS in nix.
+        env:
+          NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM: 1
+
+      - name: Check emacs version
+        run: emacs --version
+
+      - name: Cask install
+        run: cask install
+
+      - name: Run tests
+        run: make test
+        # Undercover currently don't recognize GitHub Actions as a CI
+        # environment. So we'll set this flag to force it.
+        env:
+          UNDERCOVER_FORCE: true
+        continue-on-error: ${{ matrix.emacs_version == 'snapshot' }}



reply via email to

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