Skip to content

Commit

Permalink
chore: update to node v20
Browse files Browse the repository at this point in the history
update dependencies
fix incompatibilities
align CI with other libs
  • Loading branch information
stas-nc committed Oct 30, 2023
1 parent 721006b commit a7dd7de
Show file tree
Hide file tree
Showing 11 changed files with 6,058 additions and 16,579 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/build-test.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- master
tags-ignore:
- '**'
pull_request:
branches:
- '**'

jobs:
build:
name: Build
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run check-format
- run: npm run lint
- run: npm run build
- run: npm test
- if: matrix.node-version == '20.x'
uses: actions/upload-artifact@v3
with:
name: Code coverage
path: coverage/
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [5.0.0](https://github.com/namecheap/ilc-adapter-react/compare/v4.0.0...v5.0.0) (2023-10-30)

### ⚠ BREAKING CHANGES

- Node >= 16 is required
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
transform: {
[`^.+\\.(js|ts|tsx)$`]: 'ts-jest',
'^.+\\.[tj]sx?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
testMatch: ['**/?(*.)+(spec|test).(js|ts|tsx)'],
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
testEnvironment: 'jsdom',
};
Loading

0 comments on commit a7dd7de

Please sign in to comment.