Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update new version. #36

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions .github/workflows/deno.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This workflow will install Deno then run Deno fmt and test.
# For more information see: https://github.com/denoland/setup-deno

name: Test

on:
push:
branches: ["main", "test", "feature/*"]
pull_request:
branches: ["main", "test"]
schedule:
# Run every Monday at 00:00 UTC
- cron: '0 0 * * 1'

jobs:
test:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v3

- name: Setup Deno
uses: denoland/setup-deno@v1

- name: Check version
run: deno -V

- name: Verify formatting
run: deno fmt --check

- name: Install Fresh
run: deno run -A https://deno.land/x/fresh/init.ts ./tests/work --force --tailwind --vscode

- name: Move deno.json
run: mv ./tests/work/deno.json ./deno.json

- name: view deno.json
run: cat ./deno.json

- name: Run tests
run: deno test --unstable-kv --allow-read --allow-write --allow-env --allow-net --coverage=./coverage

- name: view coverage
run: |
# reference: https://github.com/jhechtf/code-coverage
deno install --allow-read --no-check -n code-coverage https://deno.land/x/code_coverage/cli.ts &&
deno coverage --exclude=tests/work/ --lcov --output=lcov.info ./coverage/ &&
code-coverage --file lcov.info
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tests/work
deno.json
5 changes: 0 additions & 5 deletions .vscode/extensions.json

This file was deleted.

6 changes: 0 additions & 6 deletions .vscode/settings.json

This file was deleted.

Loading
Loading