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

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

[nongnu] elpa/rust-mode 484d675 419/486: Adding GitHub actions.


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 484d675 419/486: Adding GitHub actions.
Date: Sat, 7 Aug 2021 09:26:06 -0400 (EDT)

branch: elpa/rust-mode
commit 484d6754c51424e3b49461d54cfeac8fc05993b5
Author: Nathan Moreau <nathan.moreau@m4x.org>
Commit: GitHub <noreply@github.com>

    Adding GitHub actions.
---
 .github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++
 rust-mode-tests.el         |  2 +-
 2 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..5e703b9
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,33 @@
+name: GitHub actions CI
+
+on: [push]
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        rust_version: [stable]
+        emacs_version:
+          - 24.5
+          - 25.1
+          - 25.2
+          - 25.3
+          - 26.1
+          - 26.2
+          - 26.3
+          - snapshot
+    env:
+      EMACS_VERSION: ${{ matrix.emacs_version }}
+    steps:
+    - uses: hecrj/setup-rust-action@v1
+      with:
+        rust-version: ${{ matrix.rust_version }}
+    - uses: purcell/setup-emacs@master
+      with:
+        version: ${{ matrix.emacs_version }}
+
+    - uses: actions/checkout@v1
+    - name: Run tests
+      run: './run_rust_emacs_tests.sh'
diff --git a/rust-mode-tests.el b/rust-mode-tests.el
index 9d4e6b6..3252b6a 100644
--- a/rust-mode-tests.el
+++ b/rust-mode-tests.el
@@ -3140,7 +3140,7 @@ impl Two<'a> {
 
 (when (executable-find rust-cargo-bin)
   (ert-deftest rust-test-project-located ()
-    (lexical-let* ((test-dir (expand-file-name "test-project" 
default-directory))
+    (lexical-let* ((test-dir (expand-file-name "test-project/" 
default-directory))
                    (manifest-file (expand-file-name "Cargo.toml" test-dir)))
       (let ((default-directory test-dir))
         (should (equal (expand-file-name (rust-buffer-project)) 
manifest-file))))))



reply via email to

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