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

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

[nongnu] elpa/webpaste e2ba2f5 282/298: github-actions: Set up github ac


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

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

    github-actions: Set up github actions for integration tests
---
 .github/workflows/integration-tests.yml | 44 +++++++++++++++++++++++++++++++++
 Makefile                                |  4 +--
 2 files changed, 46 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/integration-tests.yml 
b/.github/workflows/integration-tests.yml
new file mode 100644
index 0000000..7bbf2d0
--- /dev/null
+++ b/.github/workflows/integration-tests.yml
@@ -0,0 +1,44 @@
+name: "Integration tests"
+
+on:
+  pull_request:
+  push:
+    paths-ignore:
+      - '**.org'
+      - '.dir-locals.el'
+    branches:
+      - master
+  # Run this job set on schedule every Saturday
+  schedule:
+    - cron: '0 12 * * 6'
+
+jobs:
+  build:
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [ ubuntu-latest ]
+        emacs_version: [ 27.1 ]
+    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
+
+      - name: Check emacs version
+        run: emacs --version
+
+      - name: Cask install
+        run: cask install
+
+      - name: Run tests
+        run: make integration
+        # 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: ${{ true }}
diff --git a/Makefile b/Makefile
index 9b58845..94ecc9e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
-TRAVIS ?= false
+GITHUB_ACTIONS ?= false
 EMACS ?= emacs
 CASK ?= cask
 
-ifeq ($(TRAVIS),true)
+ifeq ($(GITHUB_ACTIONS),true)
        PATTERN=--pattern '\[ci\]'
 endif
 



reply via email to

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