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

feat: improve matchers #8

Merged
merged 5 commits into from
Feb 15, 2024
Merged
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
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ root = true
end_of_line = lf
insert_final_newline = true

[*.{js,mjs,json,ts}]
[*.{js,mjs,mts,json,ts}]
charset = utf-8
indent_style = tab
indent_size = 2
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
merge_group:
branches: [ main]

defaults:
run:
working-directory: .

jobs:
build:
strategy:
matrix:
node-version: [ 18, 20 ]
os: [ubuntu-22.04]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout repository # v4.0.0
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
- name: Install PNPM # v2.4.0
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }} # v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run Linters
run: pnpm lint
- name: Run Tests
run: pnpm test:coverage
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
#
# SPDX-License-Identifier: MIT

coverage/
node_modules/
pnpm-lock.yaml
7 changes: 7 additions & 0 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

set -eu
set -o pipefail

pnpm lint
pnpm test
6 changes: 3 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"rules": {
"recommended": true
},
"ignore": ["./node_modules/**/*"],
"include": ["./*.json", "./*.js", "./*.mjs", "./*.d.ts"]
"ignore": ["./coverage/**/*", "./node_modules/**/*"],
"include": ["./*.json", "./*.js", "./*.mjs", "./*.mts", "./*.d.ts"]
},
"formatter": {
"enabled": true,
Expand All @@ -17,7 +17,7 @@
"lineWidth": 80,
"lineEnding": "lf",
"ignore": ["./node_modules/**/*"],
"include": ["./*.json", "./*.mjs", "./*.d.ts"]
"include": ["./*.json", "./*.mjs", "./*.mts", "./*.d.ts"]
},
"javascript": {
"formatter": {
Expand Down
Loading
Loading