From 3ad54e0f5a628b8a6824d7efdbb981953f4571b4 Mon Sep 17 00:00:00 2001 From: Alisue Date: Sat, 3 Aug 2024 18:44:55 +0900 Subject: [PATCH 1/3] =?UTF-8?q?Deno=20task=20=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deno.jsonc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deno.jsonc b/deno.jsonc index ebf6a7c..3c1c40f 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,8 +1,8 @@ { "lock": false, "tasks": { - "test": "deno test -A --doc --parallel --shuffle", "check": "deno check **/*.ts", - "upgrade": "deno run --unstable-kv --allow-env --allow-read --allow-write --allow-run=git,deno --allow-net=jsr.io,api.jsr.io,cdn.jsdelivr.net jsr:@molt/cli@^0.19.1 **/*.ts" + "update": "deno run --allow-env --allow-read --allow-write=. --allow-run=git,deno --allow-net=deno.land,jsr.io,registry.npmjs.org jsr:@molt/cli ./**/*.ts", + "update:commit": "deno task -q update --commit --prefix :package: --pre-commit=fmt,lint" } } From 4360c158ceacd094254229d4c41caf4c233e6df1 Mon Sep 17 00:00:00 2001 From: Alisue Date: Sat, 3 Aug 2024 18:33:24 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=E5=A3=8A=E3=82=8C=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=82=8B=20udd=20=E3=83=AF=E3=83=BC=E3=82=AF=E3=83=95=E3=83=AD?= =?UTF-8?q?=E3=83=BC=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/udd.yml | 48 --------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 .github/workflows/udd.yml diff --git a/.github/workflows/udd.yml b/.github/workflows/udd.yml deleted file mode 100644 index aca07a3..0000000 --- a/.github/workflows/udd.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: udd - -on: - schedule: - - cron: "0 0 * * *" - -jobs: - udd: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: denoland/setup-deno@v1 - with: - deno-version: "1.x" - - name: Update dependencies - run: | - make deps > ../output.txt - env: - NO_COLOR: 1 - - name: Read ../output.txt - id: log - uses: juliangruber/read-file-action@v1 - with: - path: ../output.txt - - name: Commit changes - run: | - git config user.name '${{ github.actor }}' - git config user.email '${{ github.actor }}@users.noreply.github.com' - git commit -a -F- < Date: Sat, 3 Aug 2024 18:33:37 +0900 Subject: [PATCH 3/3] =?UTF-8?q?Test=20=E3=83=AF=E3=83=BC=E3=82=AF=E3=83=95?= =?UTF-8?q?=E3=83=AD=E3=83=BC=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 100 +++++++++---------------------------- 1 file changed, 24 insertions(+), 76 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 14120ce..dc29751 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,107 +1,55 @@ -name: test +name: Test on: - schedule: - - cron: "0 7 * * 0" push: branches: - main - paths: - - "**/*.md" - - "**/*.ts" - - "**/*.vim" - - ".github/workflows/test.yml" - - "deno.jsonc" pull_request: paths: - - "**/*.md" - - "**/*.ts" - - "**/*.vim" - - ".github/workflows/test.yml" + - "**.md" + - "**.ts" + - "**.vim" - "deno.jsonc" + - ".github/workflows/test.yml" + workflow_dispatch: + inputs: + denops_branch: + description: 'Denops branch to test' + required: false + default: 'main' defaults: run: shell: bash --noprofile --norc -eo pipefail {0} +env: + DENOPS_BRANCH: ${{ github.event.inputs.denops_branch || 'main' }} + jobs: check: strategy: matrix: runner: - ubuntu-latest - version: + deno_version: - "1.x" runs-on: ${{ matrix.runner }} steps: - run: git config --global core.autocrlf false if: runner.os == 'Windows' - - uses: actions/checkout@v2 - - uses: denoland/setup-deno@v1 + - uses: actions/checkout@v4 + - uses: denoland/setup-deno@v1.1.4 with: - deno-version: "${{ matrix.version }}" + deno-version: "${{ matrix.deno_version }}" + - uses: actions/cache@v4 + with: + key: deno-${{ hashFiles('**/*') }} + restore-keys: deno- + path: | + /home/runner/.cache/deno/deps/https/deno.land - 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.32.0" - - "1.x" - host_version: - - vim: "v9.0.1499" - nvim: "v0.8.0" - runs-on: ${{ matrix.runner }} - steps: - - run: git config --global init.defaultBranch main - - run: git config --global core.autocrlf false - if: runner.os == 'Windows' - - uses: actions/checkout@v2 - with: - path: "./repo" - - uses: actions/checkout@v2 - with: - repository: "vim-denops/denops.vim" - path: "./denops.vim" - - uses: denoland/setup-deno@v1 - with: - deno-version: "${{ matrix.version }}" - - uses: thinca/action-setup-vim@v1 - id: vim - with: - vim_type: "Vim" - vim_version: "${{ matrix.host_version.vim }}" - download: "${{ (runner.os == 'Linux' && 'never') || 'available' }}" - - name: Check Vim - run: | - echo ${DENOPS_TEST_VIM} - ${DENOPS_TEST_VIM} --version - env: - DENOPS_TEST_VIM: ${{ steps.vim.outputs.executable_path }} - - uses: thinca/action-setup-vim@v1 - id: nvim - with: - vim_type: "Neovim" - vim_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 - working-directory: ./repo - run: deno task test - env: - DENOPS_TEST_DENOPS_PATH: "../denops.vim" - DENOPS_TEST_VIM_EXECUTABLE: ${{ steps.vim.outputs.executable_path }} - DENOPS_TEST_NVIM_EXECUTABLE: ${{ steps.nvim.outputs.executable }}