refactor(js): spec.test.ts for easier translatability #202
Workflow file for this run
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 and Build" | |
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 | |
- name: Build | |
run: cd js && pnpm build |