Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #168 from solita/feature/AE-1983
Browse files Browse the repository at this point in the history
AE-1983: Update node.js
  • Loading branch information
Juholei authored Oct 19, 2023
2 parents 0fa6345 + e10c4b1 commit 4de61bd
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 18 deletions.
43 changes: 28 additions & 15 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,37 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
node-version: [ 18.x, 20.x ]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm run check-format
- uses: actions/checkout@v2
with:
fetch-depth: 0
- 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 build --if-present
- run: npm run check-format

format:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x, 20.x ]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- 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
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.19.1
18
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.1",
"license": "EUPL v1.2",
"scripts": {
"build": "cross-env NODE_ENV=production webpack",
"dev": "webpack-dev-server --content-base public",
"build": "cross-env NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=production webpack",
"dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider webpack-dev-server --content-base public",
"test": "mocha './src/**/*_test.js' --require @babel/register --reporter dot",
"tdd": "mocha './src/**/*_test.js' --require @babel/register --reporter dot --watch",
"format": "prettier --write src",
Expand Down

0 comments on commit 4de61bd

Please sign in to comment.