Skip to content

Commit fb0c981

Browse files
committed
Split supported-version-check into its own job
Because supported-version-check depends on denops's supported-versions that makes the test fail for new denops versions.
1 parent f4a76b5 commit fb0c981

File tree

1 file changed

+30
-8
lines changed

1 file changed

+30
-8
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,6 @@ jobs:
6060
run: deno task check
6161
- name: Doc check
6262
run: deno task check:doc
63-
- name: Gen check
64-
run: |
65-
deno task gen
66-
git diff --exit-code
67-
- name: Supported version inconsistency check
68-
run: |
69-
deno task apply:supported-versions
70-
git diff --exit-code
7163

7264
test:
7365
strategy:
@@ -145,3 +137,33 @@ jobs:
145137
os: ${{ runner.os }}
146138
files: ./coverage.lcov
147139
token: ${{ secrets.CODECOV_TOKEN }}
140+
141+
supported-version-check:
142+
strategy:
143+
matrix:
144+
runner:
145+
- ubuntu-latest
146+
deno_version:
147+
- "2.x"
148+
runs-on: ${{ matrix.runner }}
149+
steps:
150+
- run: git config --global core.autocrlf false
151+
if: runner.os == 'Windows'
152+
- uses: actions/checkout@v4
153+
- uses: denoland/setup-deno@v2
154+
with:
155+
deno-version: "${{ matrix.deno_version }}"
156+
- uses: actions/cache@v4
157+
with:
158+
key: deno-${{ hashFiles('**/*') }}
159+
restore-keys: deno-
160+
path: |
161+
/home/runner/.cache/deno/deps/https/deno.land
162+
- name: Gen check
163+
run: |
164+
deno task gen
165+
git diff --exit-code
166+
- name: Supported version inconsistency check
167+
run: |
168+
deno task apply:supported-versions
169+
git diff --exit-code

0 commit comments

Comments
 (0)