Skip to content

Support new CSS display syntax #21

Support new CSS display syntax

Support new CSS display syntax #21

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@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
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