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 c05ec16
Show file tree
Hide file tree
Showing 11 changed files with 6,057 additions and 16,579 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/build-test.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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
- if: matrix.node-version == '20.x'
uses: actions/upload-artifact@v2
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 c05ec16

Please sign in to comment.