Skip to content

Commit

Permalink
Node.js v20 upgrade (#282)
Browse files Browse the repository at this point in the history
* Upgrade to Node.js v20

* Upgrade Adyen web and React router

* Skip workflows for minor edits

* Correct workflow file
  • Loading branch information
gcatanese authored Aug 29, 2024
1 parent c3fd087 commit f39ed09
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 47 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,21 @@ name: Node.js CI

on:
push:
pull_request:
branches: [ main ]
paths-ignore:
- '**/README.md'
- README.md
- .gitignore
- .gitpod.yml
- LICENSE
pull_request_target:
branches: [ main ]
paths-ignore:
- '**/README.md'
- README.md
- .gitignore
- .gitpod.yml
- LICENSE

jobs:
build:
Expand All @@ -15,7 +28,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@ on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
paths-ignore:
- '**/README.md'
- README.md
- .gitignore
- .gitpod.yml
- LICENSE
pull_request_target:
branches: [ main ]
paths-ignore:
- '**/README.md'
- README.md
- .gitignore
- .gitpod.yml
- LICENSE

jobs:
checkout:
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 16.14.0
nodejs 20.10.0
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16
FROM node:20-alpine

COPY . .

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The demo leverages Adyen's API Library for Node.js ([GitHub](https://github.com/

## Requirements

Node.js 12+
Node.js 20+

## Installation

Expand Down
79 changes: 41 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@adyen/adyen-web": "^5.55.1",
"@adyen/adyen-web": "5.60.0",
"@adyen/api-library": "^16.1.0",
"@reduxjs/toolkit": "^2.0.1",
"dotenv": "^16.0.3",
Expand All @@ -13,8 +13,8 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^9.0.4",
"react-router": "^6.21.0",
"react-router-dom": "^6.21.0",
"react-router": "^6.26.1",
"react-router-dom": "^6.26.1",
"uuidv4": "^6.2.13"
},
"scripts": {
Expand Down

0 comments on commit f39ed09

Please sign in to comment.