Skip to content

v2.0.0 #144

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

Merged
merged 1 commit into from
May 12, 2025
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
91 changes: 0 additions & 91 deletions .eslintrc.yml

This file was deleted.

105 changes: 69 additions & 36 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,83 +1,116 @@
name: Comprehensive CI
name: 🛠️ CI

on:
push:
branches:
- '**' # Runs on all branch pushes
tags-ignore:
- '**' # Ignore all tag pushes
repository_dispatch:
types: [ pr-approved ]

env:
PNPM_VERSION: '10'

jobs:
build:
name: Build
name: 🏗️ Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x, 18.x, 20.x ]
node-version: [20.x, 22.x]
steps:
- name: Checkout sources
- name: 🔄 Checkout sources
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
- name: ⚙️ Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Installing dependencies
run: npm ci
- name: Building sources
run: npm run build
- name: 📦 Install pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
- name: 📌 Installing dependencies
run: pnpm install --frozen-lockfile
- name: 🛠️ Building sources
run: pnpm run build

lint:
name: Lint Code
name: 🔍 Lint Code
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- name: Checkout sources
- name: 🔄 Checkout sources
uses: actions/checkout@v4
- name: Use Node.js 18.x
- name: ⚙️ Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Installing dependencies
run: npm ci
- name: Linting
run: npm run lint
node-version: ${{ matrix.node-version }}
- name: 📦 Install pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
- name: 📌 Installing dependencies
run: pnpm install --frozen-lockfile
- name: ✨ Linting
run: pnpm run lint
env:
CI: true

test_unit:
name: Unit Tests
name: 🧪 Unit Tests
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- name: Checkout sources
- name: 🔄 Checkout sources
uses: actions/checkout@v4
- name: Use Node.js 18.x
- name: ⚙️ Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Installing dependencies
run: npm ci
- name: Running unit tests
run: npm run test:unit
node-version: ${{ matrix.node-version }}
- name: 📦 Install pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
- name: 📌 Installing dependencies
run: pnpm install --frozen-lockfile
- name: 🚀 Running unit tests
run: pnpm run test:unit

test_integration:
name: Integration Tests
needs: [ lint, test_unit ]
name: 🧩 Integration Tests
needs:
- lint
- test_unit
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
max-parallel: 1
matrix:
node-version: [20.x, 22.x]
steps:
- name: Checkout sources
- name: 🔄 Checkout sources
uses: actions/checkout@v4
- name: Use Node.js 18.x
- name: ⚙️ Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- name: Installing dependencies
run: npm ci
- name: Creating `.env` file
with:
node-version: ${{ matrix.node-version }}
- name: 📦 Install pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
- name: 📌 Installing dependencies
run: pnpm install --frozen-lockfile
- name: 📝 Creating `.env` file
run: |
touch .env
echo HOST=${{ secrets.HOST }} >> .env
echo EMAIL=${{ secrets.EMAIL }} >> .env
echo API_TOKEN=${{ secrets.API_TOKEN }} >> .env
- name: Running integration tests
run: npm run test:integration
- name: 🚀 Running integration tests
run: pnpm run test:integration
54 changes: 54 additions & 0 deletions .github/workflows/publish-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: 🚀 Publish to NPM Dev Channel

on:
workflow_dispatch

env:
NODE_VERSION: '20.x'
PNPM_VERSION: '10'

permissions:
contents: read

jobs:
build-and-publish:
runs-on: ubuntu-latest

steps:
- name: 🔄 Checkout code
uses: actions/checkout@v4

- name: ⚙️ Setup Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: https://registry.npmjs.org/

- name: 📦 Install pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}

- name: 📌 Install dependencies
run: pnpm install --frozen-lockfile

- name: 🛠️ Run build
run: pnpm run build

- name: 🔖 Update package version
id: update-version
run: |
CURRENT_VERSION=$(node -p "require('./package.json').version")
TIMESTAMP=$(date -u +"%Y%m%d%H%M%S")
NEW_VERSION="${CURRENT_VERSION}-dev${TIMESTAMP}"
pnpm version --no-git-tag-version $NEW_VERSION
echo "New version: $NEW_VERSION"
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV

- name: 🔄 Update package-lock.json
run: pnpm install

- name: 📤 Publish to NPM Dev Channel
run: pnpm publish --tag dev --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading