File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -89,11 +89,33 @@ Deno.test("denops.call", async () => {
8989Copy and modify the following GitHub Workflow to run tests in GitHub Action
9090
9191``` yaml
92+ name : Test
93+
94+ on :
95+ push :
96+ branches :
97+ - main
98+ pull_request :
99+ paths :
100+ - " **.md"
101+ - " **.ts"
102+ - " deno.jsonc"
103+ - " .github/workflows/test.yml"
104+ workflow_dispatch :
105+ inputs :
106+ denops_branch :
107+ description : ' Denops branch to test'
108+ required : false
109+ default : ' main'
110+
92111# Use 'bash' as default shell even on Windows
93112defaults :
94113 run :
95114 shell : bash --noprofile --norc -eo pipefail {0}
96115
116+ env :
117+ DENOPS_BRANCH : ${{ github.event.inputs.denops_branch || 'main' }}
118+
97119jobs :
98120 test :
99121 strategy :
@@ -103,7 +125,7 @@ jobs:
103125 - macos-latest
104126 - ubuntu-latest
105127 deno_version :
106- - " 1.45.x "
128+ - " 1.45.0 "
107129 - " 1.x"
108130 host_version :
109131 - vim : " v9.1.0448"
@@ -126,6 +148,11 @@ jobs:
126148 git clone https://github.com/vim-denops/denops.vim /tmp/denops.vim
127149 echo "DENOPS_TEST_DENOPS_PATH=/tmp/denops.vim" >> "$GITHUB_ENV"
128150
151+ - name : Try switching denops branch
152+ run : |
153+ git -C /tmp/denops.vim switch ${{ env.DENOPS_BRANCH }} || true
154+ git -C /tmp/denops.vim branch
155+
129156 - uses : rhysd/action-setup-vim@v1
130157 id : vim
131158 with :
You can’t perform that action at this time.
0 commit comments