Add .tool-versions and .dvmrc test cases

Signed-off-by: Jesse Dijkstra <mail@jessedijkstra.nl>
This commit is contained in:
Jesse Dijkstra 2024-07-02 15:02:44 +02:00
parent 6406ddf5d0
commit 90bb7b975c
3 changed files with 57 additions and 1 deletions

1
.dvmrc Normal file
View File

@ -0,0 +1 @@
v1.43.1

View File

@ -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
View File

@ -0,0 +1 @@
deno 1.43.1