Skip to content

Commit

Permalink
Bump versions / Fix tests in nodejs 18.16.0
Browse files Browse the repository at this point in the history
In nodejs 18.16.0 become impossible to do a trick `Object.create(new URL(...))`,
so rewrote all mocks implementations to classes.

Nodejs behaviour was changed in this PR - nodejs/node#46866
  • Loading branch information
yumauri committed Apr 22, 2023
1 parent 066ee18 commit e2f4c0b
Show file tree
Hide file tree
Showing 11 changed files with 648 additions and 624 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: build

on: [push, pull_request]
on:
- push
- pull_request

jobs:
build:
Expand All @@ -13,7 +15,7 @@ jobs:
- 18
effector-version:
- 22.0.0
- 22.7.0
- 22.8.1

name: Node ${{ matrix.node-version }} / effector ${{ matrix.effector-version }}

Expand All @@ -30,7 +32,7 @@ jobs:
version: 7.29.3

- name: 🐧 Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: publish

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest

name: Publish

steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3

- name: 📦 Use PNPM
uses: pnpm/action-setup@v2
with:
version: 7.29.3

- name: 🐧 Use Node 18.16.0
uses: actions/setup-node@v3
with:
node-version: 18.16.0
cache: pnpm
registry-url: https://registry.npmjs.org/

- name: 🔍 Installation
run: pnpm install --frozen-lockfile --ignore-scripts

- name: 👮‍♂️ Linting
run: pnpm lint

- name: 🧪 Testing
run: pnpm test

- name: 🔧 Build
run: pnpm build

- name: 🔬 Check size
run: pnpm size

- name: 📦 Publish
run: pnpm publish --access public
working-directory: dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nodejs 18.15.0
nodejs 18.16.0
pnpm 7.29.3
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@
"@babel/preset-typescript": "^7.21.4",
"@react-native-async-storage/async-storage": "^1.18.1",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-node-resolve": "^15.0.2",
"@size-limit/preset-small-lib": "^8.2.4",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"effector": "22.0.0",
"effector-22-0-0": "npm:[email protected]",
"effector-22-7-0": "npm:effector@22.7.0",
"eslint": "^8.37.0",
"effector-22-8-1": "npm:effector@22.8.1",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.27.5",
Expand All @@ -71,7 +71,7 @@
"prettier": "^2.8.7",
"react-native-encrypted-storage": "^4.0.3",
"rewiremock": "^3.14.5",
"rollup": "^3.20.2",
"rollup": "^3.20.7",
"rollup-plugin-command": "^1.1.3",
"rollup-plugin-dts": "^5.3.0",
"rollup-plugin-generate-package-json": "^3.2.0",
Expand All @@ -81,7 +81,7 @@
"ts-node": "^10.9.1",
"tsd": "^0.28.1",
"tslib": "^2.5.0",
"typescript": "^5.0.3",
"typescript": "^5.0.4",
"uvu": "0.5.6",
"yaspeller": "^8.0.1"
},
Expand Down
Loading

0 comments on commit e2f4c0b

Please sign in to comment.