forked from ryo-ma/github-profile-trophy
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1001 Bytes
/
testing.yml
File metadata and controls
46 lines (37 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Check PR Test
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
install-dependencies:
runs-on: ubuntu-latest
strategy:
matrix:
deno-version: ["1.44.4"]
steps:
# Step 1: Checkout repository
- name: Git Checkout Deno Module
uses: actions/checkout@v4
# Step 2: Setup Deno
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}
# Step 3: Cache / Install dependencies
# Change src/mod.ts to main.ts if your project uses main.ts
- name: Install dependencies
run: deno cache --reload deps.ts
# Step 4: Format check
- name: Deno format check
run: deno fmt --check
# Step 5: Lint check (won't fail workflow)
- name: Deno lint check
run: deno lint || true
# Step 6: Run tests
- name: Test Deno Module
run: deno task test