Skip to content

Commit 1fd4956

Browse files
authored
Merge pull request #36 from vim-denops/ci
Improve test CI
2 parents 3f4b77f + 60eb2e8 commit 1fd4956

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/test.yml

+13
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,19 @@ on:
1616
description: 'Denops revision to test'
1717
required: false
1818
default: 'main'
19+
verbose:
20+
type: boolean
21+
required: false
22+
description: 'Enable verbose output'
23+
default: false
1924

2025
defaults:
2126
run:
2227
shell: bash --noprofile --norc -eo pipefail {0}
2328

2429
env:
2530
DENOPS_BRANCH: ${{ github.event.inputs.denops_branch || 'main' }}
31+
DENOPS_TEST_VERBOSE: ${{ github.event.inputs.verbose }}
2632

2733
jobs:
2834
check:
@@ -52,13 +58,19 @@ jobs:
5258
- name: Type check
5359
run: deno task check
5460

61+
- name: Doc check
62+
run: deno task check:doc
63+
5564
- name: Supported version inconsistency check
5665
run: |
5766
deno task apply:supported-versions
5867
git diff --exit-code
5968
6069
test:
70+
needs: check
71+
6172
strategy:
73+
fail-fast: false
6274
matrix:
6375
runner:
6476
- windows-latest
@@ -133,6 +145,7 @@ jobs:
133145
token: ${{ secrets.CODECOV_TOKEN }}
134146

135147
jsr-publish:
148+
needs: check
136149
runs-on: ubuntu-latest
137150
steps:
138151
- uses: actions/checkout@v4

deno.jsonc

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
},
2424
"tasks": {
2525
"check": "deno check **/*.ts",
26-
"test": "deno test -A --doc --parallel --shuffle",
26+
"check:doc": "deno test --doc --no-run",
27+
"test": "deno test -A --parallel --shuffle",
2728
"test:coverage": "deno task test --coverage=.coverage",
2829
"coverage": "deno coverage .coverage",
2930
"update": "deno run --allow-env --allow-read --allow-write=. --allow-run=git,deno --allow-net=jsr.io,registry.npmjs.org jsr:@molt/cli ./*.ts",

0 commit comments

Comments
 (0)