Skip to content

Commit 41a7bf4

Browse files
committed
Create deno.yml
1 parent cfece53 commit 41a7bf4

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/deno.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Deploy GitHub Pages
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
workflow_dispatch:
8+
inputs:
9+
page-root-directory:
10+
description: Page root directory
11+
default: './src/client/'
12+
type: string
13+
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
jobs:
24+
test:
25+
name: Deno Test
26+
runs-on: ubuntu-latest
27+
env:
28+
deno-version: v1.x
29+
30+
steps:
31+
- name: Get current date
32+
id: date
33+
run: echo "DATE=$(date +'%Y.%m.%d@%H-%M-%S')" >> $GITHUB_ENV
34+
35+
- name: Setup Repository (${{github.event.repository.name}})
36+
uses: actions/checkout@v3
37+
38+
- name: Setup Deno (${{env.deno-version}})
39+
uses: denoland/setup-deno@v1
40+
with:
41+
deno-version: ${{env.deno-version}}
42+
43+
- name: Run linter
44+
run: deno lint
45+
46+
- name: Run tests
47+
if: success() || failure()
48+
run: |
49+
mkdir reports
50+
deno test -A --unstable --check --reload --doc --allow-none --junit-path="./reports/${{env.DATE}}-report.xml"
51+
52+
- name: Report tests (${{env.DATE}}-report.xml)
53+
uses: dorny/test-reporter@v1
54+
with:
55+
name: Deno Test Report
56+
path: ./reports/${{env.DATE}}-report.xml
57+
reporter: jest-junit

0 commit comments

Comments
 (0)