Add .tool-versions and .dvmrc test cases
Signed-off-by: Jesse Dijkstra <mail@jessedijkstra.nl>
This commit is contained in:
parent
6406ddf5d0
commit
90bb7b975c
56
.github/workflows/test.yml
vendored
56
.github/workflows/test.yml
vendored
@ -13,7 +13,13 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
deno:
|
deno:
|
||||||
[1.x, "1.33.1", canary, ~1.32, b31cf9fde6ad5398c20370c136695db77df6beeb]
|
[
|
||||||
|
1.x,
|
||||||
|
"1.33.1",
|
||||||
|
canary,
|
||||||
|
~1.32,
|
||||||
|
b31cf9fde6ad5398c20370c136695db77df6beeb,
|
||||||
|
]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -38,3 +44,51 @@ jobs:
|
|||||||
- name: Lint
|
- name: Lint
|
||||||
if: runner.os == 'Linux' && matrix.deno == 'canary'
|
if: runner.os == 'Linux' && matrix.deno == 'canary'
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
||||||
|
test-dvm-file:
|
||||||
|
runs-on: ${{matrix.os}}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
deno:
|
||||||
|
[
|
||||||
|
1.x,
|
||||||
|
"1.33.1",
|
||||||
|
canary,
|
||||||
|
~1.32,
|
||||||
|
b31cf9fde6ad5398c20370c136695db77df6beeb,
|
||||||
|
]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Deno
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
deno-version-file: .dvmrc
|
||||||
|
|
||||||
|
- name: Check version
|
||||||
|
run: deno -V | grep -q "deno 1\.43\.1"
|
||||||
|
|
||||||
|
test-tool-versions-file:
|
||||||
|
runs-on: ${{matrix.os}}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
deno:
|
||||||
|
[
|
||||||
|
1.x,
|
||||||
|
"1.33.1",
|
||||||
|
canary,
|
||||||
|
~1.32,
|
||||||
|
b31cf9fde6ad5398c20370c136695db77df6beeb,
|
||||||
|
]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Deno
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
deno-version-file: .tool-versions
|
||||||
|
|
||||||
|
- name: Check version
|
||||||
|
run: deno -V | grep -q "deno 1\.43\.1"
|
||||||
|
1
.tool-versions
Normal file
1
.tool-versions
Normal file
@ -0,0 +1 @@
|
|||||||
|
deno 1.43.1
|
Loading…
x
Reference in New Issue
Block a user