Create mod.ts #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deno | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
workflow_dispatch: | |
permissions: | |
checks: write | |
jobs: | |
test: | |
name: Deno Test | |
runs-on: ubuntu-latest | |
env: | |
deno-version: v1.x | |
steps: | |
- name: Setup Repository (${{github.event.repository.name}}) | |
uses: actions/checkout@v3 | |
- name: Setup Deno (${{env.deno-version}}) | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: ${{env.deno-version}} | |
- name: Run linter | |
run: deno lint | |
- name: Run tests | |
if: success() || failure() | |
run: deno test -A --unstable --check --reload --doc --allow-none --junit-path="./report.xml" | |
- name: Report test | |
uses: mikepenz/[email protected] | |
with: | |
report_paths: 'report.xml' |