Skip to content

chore: dedupe and update npm dependencies #1948

chore: dedupe and update npm dependencies

chore: dedupe and update npm dependencies #1948

Workflow file for this run

name: CI Test
on:
pull_request:
branches: [master]
repository_dispatch:
types: [ci-test]
workflow_dispatch: # for manual testing
jobs:
test:
runs-on: ubuntu-latest
steps:
# setup
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
# test code
- name: Run tests
run: npm test
# generate and lint types
- name: Generate types
run: npm start -- --cache-discovery-json ${{ runner.temp }}
- name: Lint types
id: lint
run: npm run lint
env:
GAPI_MAX_PARALLEL: 3
# upload failed type for investigation
- name: Copy discovery service response
if: failure()
run: cp ${{ runner.temp }}/${{ steps.lint.outputs.FAILED_TYPE }}.json types/${{ steps.lint.outputs.FAILED_TYPE }}
- name: Upload failed type
uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{ steps.lint.outputs.FAILED_TYPE }}
path: types/${{ steps.lint.outputs.FAILED_TYPE }}