Skip to content
Closed
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
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
src/test/resources/**
githooks/**
vitest.config.js
tsconfig.vitest.json
test/**
30 changes: 28 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: CI

on:
pull_request:
push:
branches:
- master
tags:
- 'v*.*.*'
repository_dispatch:
types: [protocol-updated]

permissions:
contents: read
Expand Down Expand Up @@ -33,11 +36,34 @@ jobs:
- name: Build
run: npm run build

- name: Run Tests
- name: Run Legacy Tests (Mocha)
run: npm run test
continue-on-error: true

- name: Run TypeScript Tests (Vitest)
run: npm run test:vitest

publish:
runs-on: ubuntu-latest
needs: ci
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 24
registry-url: https://registry.npmjs.org

- name: Installing Dependencies
run: npm i

- name: Build
run: npm run build

- name: Publish NPM
if: startsWith(github.ref, 'refs/tags/')
run: |
unset NODE_AUTH_TOKEN
npm publish --provenance
Loading
Loading