Skip to content

JS Build/Test/Lint #1379

JS Build/Test/Lint

JS Build/Test/Lint #1379

#
# This workflow will build/test/lint the Javascript SDK
#
name: JS Build/Test/Lint
on:
workflow_call:
workflow_dispatch:
push:
branches: ['**']
paths: ['.github/workflows/js-*.yml', 'js/**']
permissions: read-all
jobs:
build-test-lint:
name: Build/Test/Lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
defaults:
run:
shell: bash
working-directory: js/
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
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@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit