Skip to content

Commit 94b0477

Browse files
authored
Merge pull request #2 from piyush-bhatt/github-actions
Added GitHub actions for check before merging to main branch
2 parents 8d062bc + 6850df6 commit 94b0477

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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.11.4]
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+
- name: Build Deno Module
25+
run: deno run --reload mod.ts
26+
- name: Test Deno Module
27+
run: deno test --allow-none

0 commit comments

Comments
 (0)