Skip to content
Draft
Show file tree
Hide file tree
Changes from 4 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
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.{js,ts}]
max_line_length = 100
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: Publish to NPM

on:
push:
branches:
- master
tags:
- '[0-9]+.[0-9]+.[0-9]+'

permissions: { }

jobs:
publish:
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Run tests

on:
push:
branches:
- master
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
steps:
Comment thread
coderabbitai[bot] marked this conversation as resolved.
- name: Fetch Sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Enable Corepack
run: corepack enable

- name: Setup Node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '24'
cache: 'yarn'

- name: Install dependencies
run: yarn install --immutable --check-cache --check-resolutions

- name: Check yarn dedupe
run: yarn dedupe --check

- name: Run Biome
run: yarn run fmt:check

- name: Run eslint
run: yarn run lint:ts
45 changes: 0 additions & 45 deletions .github/workflows/qa.yaml

This file was deleted.

19 changes: 16 additions & 3 deletions .github/workflows/test-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,28 @@ on:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test-example:
name: Test Example
runs-on: ubuntu-latest
steps:
- name: Setup toolchain
uses: the-ton-tech/toolchain/build@v1.4.0
- name: Fetch Sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Enable Corepack
run: corepack enable

- name: Setup Node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '22.x'
node-version: '24'
cache: 'yarn'

- name: Patch example and test execution
run: |
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run tests

on:
push:
branches:
- master
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Enable Corepack
run: corepack enable

- name: Setup Node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '24'
cache: 'yarn'

- name: Install dependencies
run: yarn install --immutable --check-cache --check-resolutions

- run: yarn run test
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@ src/coverage/test/output
.sandbox-metric-raw.jsonl

# yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
yarn-error.log
.yarn/
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
942 changes: 0 additions & 942 deletions .yarn/releases/yarn-4.9.2.cjs

This file was deleted.

9 changes: 3 additions & 6 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
compressionLevel: mixed

enableGlobalCache: false

enableImmutableInstalls: true
enableScripts: false
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.9.2.cjs
npmMinimalAgeGate: 7d
Loading
Loading