Skip to content

Commit 265ac2b

Browse files
committed
ci: add ci
1 parent 98757e8 commit 265ac2b

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflow/push.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test Deno Module
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
deno-version: [1.2.2, 1.3.0]
16+
17+
steps:
18+
- name: Git Checkout Deno Module
19+
uses: actions/checkout@v2
20+
- name: Use Deno Version ${{ matrix.deno-version }}
21+
uses: denolib/setup-deno@v2
22+
with:
23+
deno-version: ${{ matrix.deno-version }}
24+
25+
- name: check format in Deno Module
26+
run: deno fmt --check
27+
28+
- name: lint Deno Module
29+
run: deno lint
30+
- name: Build Deno Module
31+
run: deno run --reload mod.ts
32+
- name: Test Deno Module
33+
run: deno test --allow-none

0 commit comments

Comments
 (0)