Skip to content

v5.0.0 #377

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 6 commits into from
Apr 29, 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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 0 additions & 92 deletions .eslintrc.yml

This file was deleted.

43 changes: 31 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,43 +5,54 @@ on:
repository_dispatch:
types: [ pr-approved ]

env:
PNPM_VERSION: '10'

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

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

Expand All @@ -51,18 +62,22 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
- name: Installing dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Running unit tests
run: npm run test:unit
run: pnpm run test:unit

test_integration:
name: Integration Tests
Expand All @@ -73,21 +88,25 @@ jobs:
strategy:
max-parallel: 1
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
- name: Installing dependencies
run: npm ci
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
run: pnpm run test:integration
25 changes: 5 additions & 20 deletions .github/workflows/publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,22 @@ name: Publish to NPM Dev Channel
on:
workflow_dispatch

permissions:
contents: read


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

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check branch
run: |
if [ "$GITHUB_REF" != "refs/heads/develop" ]; then
echo "This workflow can only be run on the 'develop' branch."
exit 1
fi

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Install dependencies
Expand All @@ -45,16 +40,6 @@ jobs:
- name: Update package-lock.json
run: npm install

- name: Commit version update
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add package.json package-lock.json
git commit -m "Update version to $NEW_VERSION [skip ci]"
git push origin develop
env:
GITHUB_TOKEN: ${{ secrets.PAT }}

- name: Publish to NPM Dev Channel
run: npm publish --tag dev
env:
Expand Down
Loading
Loading