aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-05-03 20:23:46 +0200
committerGitHub <[email protected]>2022-05-03 20:23:46 +0200
commite29e875c6e8c111b74a9e3df63ea723390e7b209 (patch)
tree8f1ffafa3e0d0e1e6b3a8652fdaf1e0be13c680f
parent18614fbecc48490cc669a8e60ffe82122233e6a7 (diff)
downloadfaker-e29e875c6e8c111b74a9e3df63ea723390e7b209.tar.xz
faker-e29e875c6e8c111b74a9e3df63ea723390e7b209.zip
build: add node v18 support (#847)
-rw-r--r--.github/workflows/ci.yml26
-rw-r--r--netlify.toml2
-rw-r--r--package.json2
-rw-r--r--pnpm-lock.yaml10
4 files changed, 25 insertions, 15 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1faf141c..ec9d5e05 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -12,12 +12,16 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
- node_version: [14, 16, 17]
+ node_version: [14, 16, 18]
include:
- os: macos-latest
node_version: 16
+ - os: macos-latest
+ node_version: 18
- os: windows-latest
node_version: 16
+ - os: windows-latest
+ node_version: 18
fail-fast: false
name: 'Build & Unit Test: node-${{ matrix.node_version }}, ${{ matrix.os }}'
@@ -49,7 +53,7 @@ jobs:
e2e-test:
runs-on: ubuntu-latest
- name: 'E2E Doc Test: node-16, ubuntu-latest'
+ name: 'E2E Doc Test: node-18, ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v3
@@ -59,6 +63,12 @@ jobs:
with:
version: 7
+ - name: Set node version to 18
+ uses: actions/setup-node@v3
+ with:
+ node-version: 18
+ cache: 'pnpm'
+
- name: Install deps
run: pnpm install
@@ -67,7 +77,7 @@ jobs:
lint:
runs-on: ubuntu-latest
- name: 'Lint: node-16, ubuntu-latest'
+ name: 'Lint: node-18, ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v3
@@ -79,10 +89,10 @@ jobs:
with:
version: 7
- - name: Set node version to 16
+ - name: Set node version to 18
uses: actions/setup-node@v3
with:
- node-version: 16
+ node-version: 18
cache: 'pnpm'
- name: Install deps
@@ -98,7 +108,7 @@ jobs:
codecov:
runs-on: ubuntu-latest
- name: 'Codecov: node-16, ubuntu-latest'
+ name: 'Codecov: node-18, ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v3
@@ -110,10 +120,10 @@ jobs:
with:
version: 7
- - name: Set node version to 16
+ - name: Set node version to 18
uses: actions/setup-node@v3
with:
- node-version: 16
+ node-version: 18
cache: 'pnpm'
- name: Install deps
diff --git a/netlify.toml b/netlify.toml
index 1095db51..3f482d7b 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -1,5 +1,5 @@
[build.environment]
- NODE_VERSION = "16"
+ NODE_VERSION = "18"
NPM_FLAGS = "--version" # prevent Netlify npm install
# Documentation
diff --git a/package.json b/package.json
index 799f1bff..c6584b6d 100644
--- a/package.json
+++ b/package.json
@@ -90,7 +90,7 @@
},
"devDependencies": {
"@types/markdown-it": "~12.2.3",
- "@types/node": "~16.11.33",
+ "@types/node": "~17.0.31",
"@types/prettier": "~2.6.0",
"@types/sanitize-html": "~2.6.2",
"@types/validator": "~13.7.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 710818a2..aaad3221 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -2,7 +2,7 @@ lockfileVersion: 5.4
specifiers:
'@types/markdown-it': ~12.2.3
- '@types/node': ~16.11.33
+ '@types/node': ~17.0.31
'@types/prettier': ~2.6.0
'@types/sanitize-html': ~2.6.2
'@types/validator': ~13.7.2
@@ -40,7 +40,7 @@ specifiers:
devDependencies:
'@types/markdown-it': 12.2.3
- '@types/node': 16.11.33
+ '@types/node': 17.0.31
'@types/prettier': 2.6.0
'@types/sanitize-html': 2.6.2
'@types/validator': 13.7.2
@@ -421,8 +421,8 @@ packages:
resolution: {integrity: sha512-X3bUMdK/VmvrWdoTkz+VCn6nwKwrKCFTHtqwBIaQJNx4RUIBBUFXM00bqPz/DsDd+Icjmzm6/tyYZzeGVqb6/Q==}
dev: true
- /@types/node/16.11.33:
- resolution: {integrity: sha512-0PJ0vg+JyU0MIan58IOIFRtSvsb7Ri+7Wltx2qAg94eMOrpg4+uuP3aUHCpxXc1i0jCXiC+zIamSZh3l9AbcQA==}
+ /@types/node/17.0.31:
+ resolution: {integrity: sha512-AR0x5HbXGqkEx9CadRH3EBYx/VkiUgZIhP4wvPn/+5KIsgpNoyFaRlVe0Zlx9gRtg8fA06a9tskE2MSN7TcG4Q==}
dev: true
/@types/normalize-package-data/2.4.1:
@@ -455,7 +455,7 @@ packages:
resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==}
requiresBuild: true
dependencies:
- '@types/node': 16.11.33
+ '@types/node': 17.0.31
dev: true
optional: true