Skip to content

Commit 67889b9

Browse files
authored
Update Deno version and improve workflow steps (#391)
1 parent c1d8c00 commit 67889b9

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/testing.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,39 @@ on:
88
branches:
99
- master
1010
workflow_dispatch:
11+
1112
jobs:
1213
install-dependencies:
1314
runs-on: ubuntu-latest
1415

1516
strategy:
1617
matrix:
17-
deno-version: [1.43.6]
18+
deno-version: [latest]
1819

1920
steps:
21+
# Step 1: Checkout repository
2022
- name: Git Checkout Deno Module
2123
uses: actions/checkout@v4
22-
- uses: denoland/setup-deno@v1
24+
25+
# Step 2: Setup Deno
26+
- name: Setup Deno
27+
uses: denoland/setup-deno@v1
2328
with:
2429
deno-version: ${{ matrix.deno-version }}
30+
31+
# Step 3: Cache / Install dependencies
32+
# Change src/mod.ts to main.ts if your project uses main.ts
33+
- name: Install dependencies
34+
run: deno cache --reload src/mod.ts
35+
36+
# Step 4: Format check
2537
- name: Deno format check
2638
run: deno fmt --check
39+
40+
# Step 5: Lint check (won't fail workflow)
2741
- name: Deno lint check
28-
run: deno task lint
42+
run: deno lint || true
43+
44+
# Step 6: Run tests
2945
- name: Test Deno Module
3046
run: deno task test

0 commit comments

Comments
 (0)