Skip to content

chore(deps): update node.js to v20.18.1 (#892) #838

chore(deps): update node.js to v20.18.1 (#892)

chore(deps): update node.js to v20.18.1 (#892) #838

Workflow file for this run

name: node test
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- "node/ci-dependency/**"
jobs:
setup:
runs-on: ubuntu-latest
defaults:
run:
working-directory: node/ci-dependency
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install Dependencies
run: npm install
- name: Cache Dependencies
uses: actions/cache@v4
with:
path: node/ci-dependency/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('node/ci-dependency/package-lock.json') }}
test:
needs: setup
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: node/ci-dependency
strategy:
matrix:
os: [ubuntu-latest, macOS-latest] #, windows-latest]
node: [16, 18, 20]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install Dependencies
run: npm install
- name: Cache Dependencies
uses: actions/cache@v4
with:
path: node/ci-dependency/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('node/ci-dependency/package-lock.json') }}
- name: Run Tests
run: npm test