Skip to content

Commit c1674d0

Browse files
Create deno.yml
1 parent f628287 commit c1674d0

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/deno.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# This workflow will install Deno then run `deno lint` and `deno test`.
7+
# For more information see: https://github.com/denoland/setup-deno
8+
9+
name:
10+
on:
11+
push:
12+
branches: ["main"]
13+
pull_request:
14+
branches: ["main"]
15+
16+
permissions:
17+
contents:
18+
19+
jobs:
20+
test:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Setup repo
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Deno
28+
# uses: denoland/setup-deno@v1
29+
uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2
30+
with:
31+
deno-version: v1.x
32+
33+
# Uncomment this step to verify the use of 'deno fmt' on each commit.
34+
# - name: Verify formatting
35+
# run: deno fmt --check
36+
37+
- name: Run linter
38+
run: deno lint
39+
40+
- name: Run tests
41+
run: deno test -A

0 commit comments

Comments
 (0)