branch: elpa/rust-mode
commit 484d6754c51424e3b49461d54cfeac8fc05993b5
Author: Nathan Moreau <[email protected]>
Commit: GitHub <[email protected]>
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))))))