Skip to content

Bump eslint from 8.51.0 to 8.52.0 in /javascript (#336) #17

Bump eslint from 8.51.0 to 8.52.0 in /javascript (#336)

Bump eslint from 8.51.0 to 8.52.0 in /javascript (#336) #17

name: Unittest for NodeJS
on:
push:
paths:
- 'javascript/**'
pull_request:
paths:
- 'javascript/**'
permissions:
contents: read
jobs:
nodejs-unittest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [16, 18, 20]
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install
working-directory: ./javascript
- name: Create symlink
run: npm link
working-directory: ./javascript
- name: Build package
run: npm run build --if-present
working-directory: ./javascript
- name: Run testcases
run: npm test
working-directory: ./javascript