Skip to content

Commit d86ce25

Browse files
authored
Merge pull request #11 from udibo/dev
Breaking: Refactor, simplify, hono compatibility, RFC 9457
2 parents 0c454e1 + 37e93ae commit d86ce25

File tree

11 files changed

+1798
-741
lines changed

11 files changed

+1798
-741
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,41 @@ name: CI
22
on: [push, pull_request]
33
jobs:
44
build:
5-
name: test deno ${{ matrix.deno }} ${{ matrix.os }}
5+
name: test deno v2.x ${{ matrix.os }}
66
runs-on: ${{ matrix.os }}
77
timeout-minutes: 5
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, windows-latest, macOS-latest]
11-
deno: [v2.x, canary]
1211
fail-fast: true
1312
steps:
1413
- name: Clone repository
1514
uses: actions/checkout@v4
1615
- name: Setup deno
1716
uses: denoland/setup-deno@main
1817
with:
19-
deno-version: ${{ matrix.deno }}
18+
deno-version: v2.x
2019
- name: Check formatting
2120
if: matrix.os == 'ubuntu-latest'
2221
run: deno fmt --check
2322
- name: Check linting
2423
if: matrix.os == 'ubuntu-latest'
2524
run: deno lint
2625
- name: Run tests
27-
run: deno test --coverage=cov
28-
- name: Run tests unstable
29-
run: deno test --unstable
30-
- name: Generate lcov
31-
if: |
32-
matrix.os == 'ubuntu-latest' &&
33-
matrix.deno == 'v2.x'
34-
run: deno coverage --lcov cov > cov.lcov
26+
run: deno test -A --coverage
3527
- name: Upload coverage
3628
if: |
37-
matrix.os == 'ubuntu-latest' &&
38-
matrix.deno == 'v2.x'
29+
matrix.os == 'ubuntu-latest'
3930
uses: codecov/codecov-action@v4
4031
with:
4132
fail_ci_if_error: true
42-
files: cov.lcov
33+
files: coverage/lcov.info
4334
env:
4435
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4536
- name: Release info
4637
if: |
4738
github.repository == 'udibo/http-error' &&
4839
matrix.os == 'ubuntu-latest' &&
49-
matrix.deno == 'v2.x' &&
5040
startsWith(github.ref, 'refs/tags/')
5141
shell: bash
5242
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage

0 commit comments

Comments
 (0)