diff options
| author | Nathan Moreau <nathan.moreau@m4x.org> | 2019-10-27 02:40:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-27 02:40:32 +0100 |
| commit | 484d6754c51424e3b49461d54cfeac8fc05993b5 (patch) | |
| tree | 17bbd45a62f847c4eadd18353ea6943167698e3a | |
| parent | 5ad9b599c6beea43d6262c3ad81d95512a7e53b8 (diff) | |
| download | rust-mode-484d6754c51424e3b49461d54cfeac8fc05993b5.tar.gz | |
Adding GitHub actions.
| -rw-r--r-- | .github/workflows/test.yml | 33 | ||||
| -rw-r--r-- | rust-mode-tests.el | 2 |
2 files changed, 34 insertions, 1 deletions
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)))))) |
