Skip to content

Commit 89397f4

Browse files
authored
👷 Run automated tests in CI on each pull request (#9)
* 👷 run tests in CI on each pull request Add a CI workflow that runs formatting, lint, type check, and the test suite on every pull request and on pushes to main. Also pin the Deno version (2.9.1) across all workflows so CI is reproducible and version bumps are deliberate. * 👷 rename CI workflow to Verify --------- Co-authored-by: Taras Mankovski <74687+taras@users.noreply.github.com>
1 parent d91e8a8 commit 89397f4

2 files changed

Lines changed: 35 additions & 4 deletions

File tree

‎.github/workflows/publish.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: setup deno
2020
uses: denoland/setup-deno@v2
2121
with:
22-
deno-version: v2.x
22+
deno-version: 2.9.1
2323

2424
- name: Get Version
2525
id: vars
@@ -40,7 +40,7 @@ jobs:
4040
- name: setup deno
4141
uses: denoland/setup-deno@v2
4242
with:
43-
deno-version: v2.x
43+
deno-version: 2.9.1
4444

4545
- name: Get Version
4646
id: vars
@@ -96,7 +96,7 @@ jobs:
9696
- name: setup deno
9797
uses: denoland/setup-deno@v2
9898
with:
99-
deno-version: v2.x
99+
deno-version: 2.9.1
100100

101101
- name: Get Version
102102
id: vars
@@ -116,7 +116,7 @@ jobs:
116116

117117
- uses: denoland/setup-deno@v2
118118
with:
119-
deno-version: v2.x
119+
deno-version: 2.9.1
120120

121121
- run: mkdir bin
122122

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Verify
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: checkout
14+
uses: actions/checkout@v4
15+
16+
- name: setup deno
17+
uses: denoland/setup-deno@v2
18+
with:
19+
deno-version: 2.9.1
20+
21+
- name: check formatting
22+
run: deno fmt --check
23+
24+
- name: lint
25+
run: deno lint
26+
27+
- name: type check
28+
run: deno check mod.ts main.ts
29+
30+
- name: run tests
31+
run: deno test -A

0 commit comments

Comments
 (0)