fix(url): add hash to ParsedURL struct (#220)
#206
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - master | |
| - next | |
| env: | |
| BUN_VERSION: 1.2 | |
| jobs: | |
| health: | |
| name: Health | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: ${{ env.BUN_VERSION }} | |
| - name: Lint | |
| run: bunx oxlint@latest . | |
| test: | |
| name: Node.js v${{ matrix.nodejs }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| nodejs: [10, 12, 14, 16, 18] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.nodejs }} | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: ${{ env.BUN_VERSION }} | |
| - name: (env) cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: ${{ runner.os }}-${{ matrix.nodejs }}-${{ hashFiles('**/package.json') }} | |
| restore-keys: ${{ runner.os }}-${{ matrix.nodejs }}- | |
| - name: Install | |
| run: bun install | |
| - name: Install Globals | |
| if: matrix.nodejs >= 18 | |
| run: bun add -g c8 | |
| - name: Build | |
| run: bun run build | |
| - name: Test | |
| if: matrix.nodejs < 18 | |
| run: npm test | |
| - name: Test w/ Coverage | |
| if: matrix.nodejs >= 18 | |
| run: c8 --include=packages npm test | |
| - name: Report | |
| if: matrix.nodejs >= 18 | |
| run: | | |
| c8 report --reporter=text-lcov > coverage.lcov | |
| bash <(curl -s https://codecov.io/bash) | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |