-
Notifications
You must be signed in to change notification settings - Fork 0
99 lines (80 loc) · 2.64 KB
/
testing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Testing
on: [push]
jobs:
test-stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# selecting a toolchain either by action or manual `rustup` calls should happen
# before the plugin, as it uses the current rustc version as its cache key
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- uses: Swatinem/rust-cache@v1
- name: Run Rust tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --workspace
test-miri:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# selecting a toolchain either by action or manual `rustup` calls should happen
# before the plugin, as it uses the current rustc version as its cache key
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rust-src, miri
- uses: Swatinem/rust-cache@v1
- name: Install xargo
uses: actions-rs/install@v0.1
with:
crate: xargo
version: latest
- name: Run miri test
uses: actions-rs/cargo@v1
env:
RUST_BACKTRACE: 1
with:
toolchain: nightly
command: miri
args: test --all-features --workspace
test-lua:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v2
# selecting a toolchain either by action or manual `rustup` calls should happen
# before the plugin, as it uses the current rustc version as its cache key
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Install neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: v0.6.0
- name: Install plenary.nvim
uses: actions/checkout@v2
with:
repository: "nvim-lua/plenary.nvim"
path: "nvim_plugins/plenary.nvim"
- name: Link plenary to nvim pack dir
run: |
mkdir -p ~/.local/share/nvim/site/pack/packer/start \
&& mv nvim_plugins/plenary.nvim ~/.local/share/nvim/site/pack/packer/start
- uses: Swatinem/rust-cache@v1
- name: Build with lua_test
uses: actions-rs/cargo@v1
with:
command: build
args: --package nvim_api --package overkill_nvim --features lua_test
- name: View files in target/
run: ls -R target/
- name: Run plenary tests
run: |
nvim --headless \
-c "PlenaryBustedDirectory tests/plenary {minimal_init = 'tests/minimal_init.vim'}"