Skip to content

๐Ÿ‘ Refine internal mechanisms of communicating with denops to support denops v6 #73

๐Ÿ‘ Refine internal mechanisms of communicating with denops to support denops v6

๐Ÿ‘ Refine internal mechanisms of communicating with denops to support denops v6 #73

Workflow file for this run

name: Test
on:
schedule:
- cron: "0 7 * * 0"
push:
branches:
- main
pull_request:
paths:
- "**.md"
- "**.ts"
- ".github/workflows/test.yml"
- "Makefile"
defaults:
run:
shell: bash --noprofile --norc -eo pipefail {0}
jobs:
check:
strategy:
matrix:
runner:
- ubuntu-latest
version:
- "1.x"
runs-on: ${{ matrix.runner }}
steps:
- run: git config --global core.autocrlf false
if: runner.os == 'Windows'
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: "${{ matrix.version }}"
- name: Lint check
run: deno lint
- name: Format check
run: deno fmt --check
- name: Type check
run: deno task check
test:
strategy:
matrix:
runner:
- windows-latest
- macos-latest
- ubuntu-latest
version:
- "1.38.x"
- "1.x"
host_version:
- vim: "v9.0.2149"
nvim: "v0.9.4"
runs-on: ${{ matrix.runner }}
timeout-minutes: 15
steps:
- run: git config --global core.autocrlf false
if: runner.os == 'Windows'
- uses: actions/checkout@v4
with:
path: "./repo"
- uses: actions/checkout@v4
with:
repository: "vim-denops/denops.vim"
path: "./denops.vim"
- uses: denoland/setup-deno@v1
with:
deno-version: "${{ matrix.version }}"
- uses: rhysd/action-setup-vim@v1
id: vim
with:
version: "${{ matrix.host_version.vim }}"
- name: Check Vim
run: |
echo ${DENOPS_TEST_VIM}
${DENOPS_TEST_VIM} --version
env:
DENOPS_TEST_VIM: ${{ steps.vim.outputs.executable }}
- uses: rhysd/action-setup-vim@v1
id: nvim
with:
neovim: true
version: "${{ matrix.host_version.nvim }}"
- name: Check Neovim
run: |
echo ${DENOPS_TEST_NVIM}
${DENOPS_TEST_NVIM} --version
env:
DENOPS_TEST_NVIM: ${{ steps.nvim.outputs.executable }}
- name: Test
run: deno task test
env:
DENOPS_TEST_DENOPS_PATH: "../denops.vim"
DENOPS_TEST_VIM_EXECUTABLE: ${{ steps.vim.outputs.executable }}
DENOPS_TEST_NVIM_EXECUTABLE: ${{ steps.nvim.outputs.executable }}
working-directory: ./repo
- run: |
deno coverage --unstable .coverage --lcov > coverage.lcov
working-directory: ./repo
- uses: codecov/codecov-action@v3
with:
os: ${{ runner.os }}
files: ./coverage.lcov