Skip to content

Merge branch 'main' into kavin/whobot-fix #442

Merge branch 'main' into kavin/whobot-fix

Merge branch 'main' into kavin/whobot-fix #442

#
# This workflow will build/test/lint the Javascript SDK
#
name: JS Build/Test/Lint
on:
workflow_call:
workflow_dispatch:
push:
branches: ['**']
paths: ['js/**']
permissions: read-all
jobs:
build-test-lint:
name: Build/Test/Lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
defaults:
run:
shell: bash
working-directory: js/
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: yarn --frozen-lockfile
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Lint
run: yarn lint
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit