Skip to content

Commit

Permalink
Merge pull request #40 from uga-rosa/fix
Browse files Browse the repository at this point in the history
Super powerful update
  • Loading branch information
Shougo committed Jun 28, 2023
2 parents 72197a0 + 336d0f2 commit 0fc77f8
Show file tree
Hide file tree
Showing 25 changed files with 1,540 additions and 422 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: integration

env:
DENO_VERSION: 1.x

on:
schedule:
- cron: "0 7 * * 0"
push:
branches:
- main
pull_request:
branches:
- main

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- uses: leafo/gh-actions-lua@v8
with:
luaVersion: "luajit-2.1.0-beta3"
- uses: leafo/gh-actions-luarocks@v4
- run: luarocks install luacheck

- name: Check
run: deno task check

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: "./repo"
- uses: actions/checkout@v3
with:
repository: "vim-denops/denops.vim"
path: "./denops.vim"
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- uses: rhysd/action-setup-vim@v1
with:
version: nightly
neovim: true
- name: Test
run: deno task test
env:
DENOPS_TEST_DENOPS_PATH: "../denops.vim"
working-directory: ./repo
2 changes: 2 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
globals = { 'vim', 'describe', 'it', 'assert', 'before_each', 'after_each' }
max_line_length = false
3 changes: 2 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MIT license

Copyright (c) Shougo Matsushita <Shougo.Matsu at gmail.com>
Copyright (c) Shougo Matsushita <Shougo.Matsu at gmail.com>,
Tsuyoshi NAKAI <uga6603 at gmail.com>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
9 changes: 9 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"lock": false,
"tasks": {
"pre-commit": "deno task fmt && deno task check && deno task test",
"test": "deno test -A",
"check": "deno check **/*.ts && deno fmt --check **/*.ts && deno lint && luacheck lua/*",
"fmt": "deno fmt **/*.ts && stylua lua/*"
}
}
Loading

0 comments on commit 0fc77f8

Please sign in to comment.