File tree 1 file changed +28
-1
lines changed
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 () => {
89
89
Copy and modify the following GitHub Workflow to run tests in GitHub Action
90
90
91
91
``` 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
+
92
111
# Use 'bash' as default shell even on Windows
93
112
defaults :
94
113
run :
95
114
shell : bash --noprofile --norc -eo pipefail {0}
96
115
116
+ env :
117
+ DENOPS_BRANCH : ${{ github.event.inputs.denops_branch || 'main' }}
118
+
97
119
jobs :
98
120
test :
99
121
strategy :
@@ -103,7 +125,7 @@ jobs:
103
125
- macos-latest
104
126
- ubuntu-latest
105
127
deno_version :
106
- - " 1.45.x "
128
+ - " 1.45.0 "
107
129
- " 1.x"
108
130
host_version :
109
131
- vim : " v9.1.0448"
@@ -126,6 +148,11 @@ jobs:
126
148
git clone https://github.com/vim-denops/denops.vim /tmp/denops.vim
127
149
echo "DENOPS_TEST_DENOPS_PATH=/tmp/denops.vim" >> "$GITHUB_ENV"
128
150
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
+
129
156
- uses : rhysd/action-setup-vim@v1
130
157
id : vim
131
158
with :
You can’t perform that action at this time.
0 commit comments