From 90bb7b975c28bd5ed99af559d6cc3edbf6e5553e Mon Sep 17 00:00:00 2001 From: Jesse Dijkstra Date: Tue, 2 Jul 2024 15:02:44 +0200 Subject: [PATCH] Add .tool-versions and .dvmrc test cases Signed-off-by: Jesse Dijkstra --- .dvmrc | 1 + .github/workflows/test.yml | 56 +++++++++++++++++++++++++++++++++++++- .tool-versions | 1 + 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 .dvmrc create mode 100644 .tool-versions diff --git a/.dvmrc b/.dvmrc new file mode 100644 index 0000000..503ae8b --- /dev/null +++ b/.dvmrc @@ -0,0 +1 @@ +v1.43.1 \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 97f7d36..f80b9c5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,13 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest] deno: - [1.x, "1.33.1", canary, ~1.32, b31cf9fde6ad5398c20370c136695db77df6beeb] + [ + 1.x, + "1.33.1", + canary, + ~1.32, + b31cf9fde6ad5398c20370c136695db77df6beeb, + ] steps: - uses: actions/checkout@v3 @@ -38,3 +44,51 @@ jobs: - name: Lint if: runner.os == 'Linux' && matrix.deno == 'canary' 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" diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..ac1e892 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +deno 1.43.1 \ No newline at end of file