feat(internal/config): add NPM and Pip tool types #2084
Workflow file for this run
This file contains hidden or 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 2026 Google LLC | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # https://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| name: Node.js | |
| on: [push, pull_request, merge_group] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-24.04 | |
| # TODO(https://github.com/googleapis/librarian/issues/4593): | |
| # gapic-generator-typescript installation takes over 4 minutes. | |
| # Improve installation speed and revert timeout to 5 minutes. | |
| timeout-minutes: 6 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: "go.mod" | |
| - name: Display Go version | |
| run: go version | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "18" | |
| - name: Display Node.js version | |
| run: node --version | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.14" | |
| - name: Display Python version | |
| run: python3 --version | |
| - uses: ./.github/actions/install-protoc | |
| - name: Install Node.js tools | |
| # TODO(https://github.com/googleapis/librarian/issues/4848): download | |
| # librarian.yaml from google-cloud-node instead of creating a fake one. | |
| run: | | |
| echo 'language: nodejs' > librarian.yaml | |
| go run ./cmd/librarian install | |
| rm librarian.yaml | |
| - name: Run internal/librarian/nodejs tests and check coverage | |
| run: go run ./tool/cmd/coverage ./internal/librarian/nodejs |