Skip to content

Commit 484d675

Browse files
authored
Adding GitHub actions.
1 parent 5ad9b59 commit 484d675

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: GitHub actions CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
rust_version: [stable]
12+
emacs_version:
13+
- 24.5
14+
- 25.1
15+
- 25.2
16+
- 25.3
17+
- 26.1
18+
- 26.2
19+
- 26.3
20+
- snapshot
21+
env:
22+
EMACS_VERSION: ${{ matrix.emacs_version }}
23+
steps:
24+
- uses: hecrj/setup-rust-action@v1
25+
with:
26+
rust-version: ${{ matrix.rust_version }}
27+
- uses: purcell/setup-emacs@master
28+
with:
29+
version: ${{ matrix.emacs_version }}
30+
31+
- uses: actions/checkout@v1
32+
- name: Run tests
33+
run: './run_rust_emacs_tests.sh'

rust-mode-tests.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3140,7 +3140,7 @@ impl Two<'a> {
31403140

31413141
(when (executable-find rust-cargo-bin)
31423142
(ert-deftest rust-test-project-located ()
3143-
(lexical-let* ((test-dir (expand-file-name "test-project" default-directory))
3143+
(lexical-let* ((test-dir (expand-file-name "test-project/" default-directory))
31443144
(manifest-file (expand-file-name "Cargo.toml" test-dir)))
31453145
(let ((default-directory test-dir))
31463146
(should (equal (expand-file-name (rust-buffer-project)) manifest-file))))))

0 commit comments

Comments
 (0)