Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 1f68fd8

Browse files
authored
test: fix tests after v2 bump (#21)
* test: fix faulty `customized` test case * test: migrate to deno v2/lockfile v4
1 parent c278851 commit 1f68fd8

File tree

11 files changed

+99
-149
lines changed

11 files changed

+99
-149
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@ jobs:
4141
- name: Test action
4242
uses: ./
4343
with:
44-
deno-version: 1.x
4544
deno-lock-path: "test/customized/deno.lock"
4645
directory: "test/customized"
4746

4847
- name: Test customized usage
4948
working-directory: test/customized
50-
run: deno run -A main.ts
49+
run: deno run -A main.ts

deno.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"imports": {
3+
"@std/fmt": "jsr:@std/fmt@^1.0.6",
34
"std/": "https://deno.land/std@0.207.0/",
45
"cliffy/": "https://deno.land/x/cliffy@v1.0.0-rc.3/"
56
},

deno.lock

Lines changed: 13 additions & 68 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/basic/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env -S deno run -A
22
// just get any stdlib for the cache test
3-
import { red, yellow, green, cyan, magenta } from "std/fmt/colors.ts";
3+
import { red, yellow, green, cyan, magenta } from "@std/fmt/colors";
44

55
const helloWorld = [
66
red("He"),

test/customized/deno.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"imports": {
3-
"std/": "https://deno.land/std@0.207.0/",
4-
"cliffy/": "https://deno.land/x/cliffy@v1.0.0-rc.3/"
3+
"@cliffy/command": "jsr:@cliffy/command@^1.0.0-rc.7"
54
},
65
"lock": "./deno.lock"
76
}

0 commit comments

Comments
 (0)