refactor: clean up spec.test.ts to prepare for translation to Go and … #208
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2024 Google LLC | |
# SPDX-License-Identifier: Apache-2.0 | |
name: "JS: Run Tests" | |
on: | |
push: | |
paths: | |
- "js/**" | |
- "spec/**" | |
pull_request: | |
paths: | |
- "js/**" | |
- "spec/**" | |
jobs: | |
test: | |
name: Run tests (Node ${{ matrix.node-version }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: ['20', '21', '22', '23'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js v${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install dependencies | |
run: cd js && pnpm install | |
- name: Run tests | |
run: cd js && pnpm test |