Skip to content

Commit

Permalink
feat: added support for node 18 (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
natterstefan committed Oct 26, 2022
1 parent 0416a0c commit 68a6cbe
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 10 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,22 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 18]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8

- uses: actions/setup-node@16352bb09bc672a073e326c2cc1d3d7d2a3e577e
with:
node-version: 16
node-version: ${{ matrix.node-version }}
cache: "yarn"

- uses: bahmutov/npm-install@cb39a46f27f14697fec763d60fb23ad347e2befa
- uses: bahmutov/npm-install@4a274d026feb3c5c4273ac7bbe74c90a7e07cd08
with:
install-command:
yarn --prefer-offline --frozen-lockfile --no-progress --silent
--ignore-engines

- run: yarn lint
- run: yarn test
5 changes: 4 additions & 1 deletion .github/workflows/lint-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ on:
- edited
- synchronize

permissions:
pull-requests: read

jobs:
main:
runs-on: ubuntu-latest
steps:
# Please look up the latest version from
# https://github.com/amannn/action-semantic-pull-request/releases
- uses: amannn/action-semantic-pull-request@v3.6.0
- uses: amannn/action-semantic-pull-request@01d5fd8a8ebb9aafe902c40c53f0f4744f7381eb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Stefan Natter (https://natterstefan.me)",
"license": "Apache-2.0",
"engines": {
"node": "^14.17 || ^16.x"
"node": "^14.17 || ^16.x || ^18.x"
},
"scripts": {
"lint": "FORCE_COLOR=1 turbo run lint --parallel --no-cache",
Expand Down
2 changes: 1 addition & 1 deletion packages/example-app-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"private": true,
"engines": {
"node": "^14.17 || ^16.x"
"node": "^14.17 || ^16.x || ^18.x"
},
"scripts": {
"test": "jest --silent"
Expand Down
2 changes: 1 addition & 1 deletion packages/example-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"private": true,
"engines": {
"node": "^14.17 || ^16.x"
"node": "^14.17 || ^16.x || ^18.x"
},
"scripts": {
"test": "jest --silent"
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-preset-ns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"main": "jest-preset.js",
"engines": {
"node": "^14.17 || ^16.x"
"node": "^14.17 || ^16.x || ^18.x"
},
"files": [
"jest-preset.js",
Expand Down
1 change: 0 additions & 1 deletion packages/jest-preset-ns/presets/react/jest-setup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable global-require */
const semver = require('semver')
const colors = require('colors')
const reactVersion = require('react/package.json').version

/**
Expand Down

0 comments on commit 68a6cbe

Please sign in to comment.