-
Notifications
You must be signed in to change notification settings - Fork 2
91 lines (74 loc) · 2.05 KB
/
deno.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
name: Test
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
- labeled
- unlabeled
workflow_dispatch:
inputs:
denops_branch:
description: 'Denops branch to test'
required: false
default: 'main'
# Use 'nushell' as it's the only sane shell
defaults:
run:
shell: nu {0}
env:
DENOPS_BRANCH: ${{ github.event.inputs.denops_branch || 'main' }}
jobs:
test:
strategy:
matrix:
runner:
- ubuntu-latest
deno_version:
- "1.x"
host_version:
- nvim: "v0.10.0"
runs-on: ${{ matrix.runner }}
steps:
- uses: hustcer/setup-nu@main
with:
version: "0.98"
- run: git config --global core.autocrlf false
if: runner.os == 'Windows'
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno_version }}
- name: Get denops
run: |
git clone https://github.com/vim-denops/denops.vim /tmp/denops.vim
echo "DENOPS_TEST_DENOPS_PATH=/tmp/denops.vim" | save --append $env.GITHUB_ENV
- name: Try switching denops branch
run: |
git -C /tmp/denops.vim switch ${{ env.DENOPS_BRANCH }}
git -C /tmp/denops.vim branch
- uses: rhysd/action-setup-vim@v1
id: nvim
with:
neovim: true
version: ${{ matrix.host_version.nvim }}
- name: Export executables
run: |
cat $env.GITHUB_ENV
echo "DENOPS_TEST_NVIM_EXECUTABLE=${{ steps.nvim.outputs.executable }}" | save --append $env.GITHUB_ENV
- name: Check versions
run: |
deno --version
echo $env
^$env.DENOPS_TEST_NVIM_EXECUTABLE --version
- name: Perform pre-cache
run: |
deno cache $"($env.DENOPS_TEST_DENOPS_PATH)/denops/@denops-private/mod.ts"
deno cache ./denops/aider/main.ts
- name: Run tests
run: deno test -A