Skip to content

Commit

Permalink
Merge pull request #129 from jsr-core/refactoring
Browse files Browse the repository at this point in the history
refactor: refine documents and benchmarks
  • Loading branch information
lambdalisue authored Aug 21, 2024
2 parents 243dfc5 + 9e0b450 commit 3a955b9
Show file tree
Hide file tree
Showing 83 changed files with 3,514 additions and 602 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Benchmark

env:
DENO_VERSION: 1.x

on:
push:
tags:
- "v*"
workflow_dispatch:

jobs:
bench:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- name: Cache
run: |
deno cache **/*.ts
- name: Test
run: |
deno bench | tee bench.txt
echo '# 🚀 Benchmarks' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
cat bench.txt | npx strip-ansi-cli >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
timeout-minutes: 10
17 changes: 5 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
check:
Expand Down Expand Up @@ -36,6 +37,10 @@ jobs:
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- name: Cache
run: |
deno cache **/*.ts
timeout-minutes: 5
- name: Test
run: |
deno task test:coverage
Expand All @@ -48,18 +53,6 @@ jobs:
files: ./coverage.lcov
token: ${{ secrets.CODECOV_TOKEN }}

bench:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- name: Test
run: |
deno bench
timeout-minutes: 5

jsr-publish:
runs-on: ubuntu-latest
steps:
Expand Down
Loading

0 comments on commit 3a955b9

Please sign in to comment.