Skip to content

Merge branch 'main' into cg/cardGazer-4o #1586

Merge branch 'main' into cg/cardGazer-4o

Merge branch 'main' into cg/cardGazer-4o #1586

#
# 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@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
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@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit