This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👍 Clone from
denops.vim/denops/@denops
for v6
- Loading branch information
1 parent
5c84d01
commit b1551d2
Showing
14 changed files
with
299 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,102 @@ | ||
name: deno | ||
name: test | ||
|
||
on: [push, pull_request] | ||
on: | ||
schedule: | ||
- cron: "0 7 * * 0" | ||
push: | ||
paths: | ||
- "**.md" | ||
- "**.ts" | ||
- "**.vim" | ||
- ".github/workflows/test.yml" | ||
- "deno.jsonc" | ||
pull_request: | ||
paths: | ||
- "**.md" | ||
- "**.ts" | ||
- "**.vim" | ||
- ".github/workflows/test.yml" | ||
- "deno.jsonc" | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: denolib/setup-deno@v2 | ||
with: | ||
deno-version: v1.7.2 | ||
- name: Lint | ||
run: deno lint --unstable | ||
defaults: | ||
run: | ||
shell: bash --noprofile --norc -eo pipefail {0} | ||
|
||
format: | ||
runs-on: ubuntu-20.04 | ||
jobs: | ||
check: | ||
strategy: | ||
matrix: | ||
runner: | ||
- ubuntu-latest | ||
version: | ||
- "1.x" | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: denolib/setup-deno@v2 | ||
- run: git config --global core.autocrlf false | ||
if: runner.os == 'Windows' | ||
- uses: actions/checkout@v4 | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.7.2 | ||
- name: Format | ||
run: | | ||
deno fmt --check | ||
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: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
runner: | ||
- windows-latest | ||
- macos-latest | ||
- ubuntu-latest | ||
version: | ||
- "1.32.x" | ||
- "1.x" | ||
host_version: | ||
- vim: "v9.0.1499" | ||
nvim: "v0.8.0" | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: denolib/setup-deno@v2 | ||
- run: git config --global core.autocrlf false | ||
if: runner.os == 'Windows' | ||
- uses: actions/checkout@v4 | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.7.2 | ||
deno-version: "${{ matrix.version }}" | ||
- uses: rhysd/action-setup-vim@v1 | ||
id: vim | ||
with: | ||
neovim: false | ||
version: v8.2.2525 | ||
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: stable | ||
- name: Test | ||
version: "${{ matrix.host_version.nvim }}" | ||
- name: Check Neovim | ||
run: | | ||
deno test --allow-run --allow-net --allow-env | ||
echo ${DENOPS_TEST_NVIM} | ||
${DENOPS_TEST_NVIM} --version | ||
env: | ||
DENOPS_VIM: ${{ steps.vim.outputs.executable }} | ||
DENOPS_NVIM: ${{ steps.nvim.outputs.executable }} | ||
DENOPS_TEST_NVIM: ${{ steps.nvim.outputs.executable }} | ||
- name: Test | ||
run: deno task test | ||
env: | ||
DENOPS_TEST_DENOPS_PATH: "./" | ||
DENOPS_TEST_VIM_EXECUTABLE: ${{ steps.vim.outputs.executable }} | ||
DENOPS_TEST_NVIM_EXECUTABLE: ${{ steps.nvim.outputs.executable }} | ||
timeout-minutes: 5 | ||
- run: | | ||
deno coverage --unstable .coverage --lcov > coverage.lcov | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
os: ${{ runner.os }} | ||
files: ./coverage.lcov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: update | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: 1.x | ||
- name: Configure Git | ||
run: | | ||
git config user.name github-actions[bot] | ||
git config user.email github-actions[bot]@users.noreply.github.com | ||
- name: Update dependencies and commit changes | ||
run: deno task -q upgrade:commit --summary ../title.txt --report ../body.md | ||
- name: Check result | ||
id: result | ||
uses: andstor/file-existence-action@v2 | ||
with: | ||
files: ../title.txt, ../body.md | ||
- name: Read title.txt | ||
id: title | ||
if: steps.result.outputs.files_exists == 'true' | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: ../title.txt | ||
- name: Read body.md | ||
id: body | ||
if: steps.result.outputs.files_exists == 'true' | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: ../body.md | ||
- name: Create a pull request | ||
if: steps.result.outputs.files_exists == 'true' | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.PA_TOKEN }} | ||
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | ||
branch: automation/update-dependencies | ||
title: ${{ steps.title.outputs.content }} | ||
body: ${{ steps.body.outputs.content }} | ||
labels: automation | ||
delete-branch: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
|
||
# Guide (v1.0) | ||
# | ||
# 👍 :+1: Apply changes. | ||
# | ||
# 🌿 :herb: Add or update things for tests. | ||
# ☕ :coffee: Add or update things for developments. | ||
# 📦 :package: Add or update dependencies. | ||
# 📝 :memo: Add or update documentations. | ||
# | ||
# 🐛 :bug: Bugfixes. | ||
# 💋 :kiss: Critical hotfixes. | ||
# 🚿 :shower: Remove features, codes, or files. | ||
# | ||
# 🚀 :rocket: Improve performance. | ||
# 💪 :muscle: Refactor codes. | ||
# 💥 :boom: Breaking changes. | ||
# 💩 :poop: Bad codes needs to be improved. | ||
# | ||
# How to use: | ||
# git config commit.template .gitmessage | ||
# | ||
# Reference: | ||
# https://github.com/lambdalisue/emojiprefix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,17 @@ | ||
**DEPRECATED** | ||
# denops_core | ||
|
||
Use https://deno.land/x/denops_core instead. | ||
[![deno](https://github.com/vim-denops/denops.vim/workflows/deno/badge.svg)](https://github.com/vim-denops/denops.vim/actions?query=workflow%3Adeno) | ||
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/denops_core/mod.ts) | ||
[![deno land](http://img.shields.io/badge/available%20on-deno.land/x/denops__core-lightgrey.svg?logo=deno)](https://deno.land/x/denops_core) | ||
|
||
# 🐜 denops-deno | ||
This is a core module of [denops.vim][denops.vim] which is an ecosystem of | ||
Vim/Neovim to write plugins in [Deno][deno]. | ||
|
||
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/denops/mod.ts) | ||
[![deno](https://github.com/vim-denops/denops-deno/workflows/deno/badge.svg)](https://github.com/vim-denops/denops-deno/actions?query=workflow%3Adeno) | ||
|
||
[Deno][deno] module for [denops.vim][denops.vim]. This module is assumed to be | ||
used in denops plugin and the code is assumed to be called in a worker thread | ||
for a plugin. | ||
|
||
Note that this module focused to provide primitive features. See | ||
[denops-std-deno](https://github.com/vim-denops/denops-std-deno) for more useful | ||
features. | ||
|
||
**UNDER DEVELOPMENT** | ||
Note that most of users should use [denops_std][denops_std] module instead to | ||
write plugins of [denops.vim][denops.vim]. This module is designed as a core | ||
layer of [denops_std][denops_std] so using this module directly from plugins is | ||
strongly dis-recommended. | ||
|
||
[deno]: https://deno.land/ | ||
[denops.vim]: https://github.com/vim-denops/denops.vim | ||
|
||
## Example | ||
|
||
See | ||
[denops-helloworld.vim](https://github.com/vim-denops/denops-helloworld.vim). | ||
|
||
## License | ||
|
||
The code follows MIT license written in [LICENSE](./LICENSE). Contributors need | ||
to agree that any modifications sent in this repository follow the license. | ||
[denops_std]: https://deno.land/x/denops_std |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"lock": false, | ||
"tasks": { | ||
"test": "deno test --unstable -A --parallel --shuffle --doc --coverage=.coverage", | ||
"check": "deno check --unstable $(find . -name '*.ts')", | ||
"coverage": "deno coverage --unstable .coverage", | ||
"upgrade": "deno run -q -A https://deno.land/x/[email protected]/cli.ts ./**/*.ts", | ||
"upgrade:commit": "deno task -q upgrade --commit --prefix :package: --pre-commit=fmt" | ||
} | ||
} |
Oops, something went wrong.