Merge pull request #3782 from rommapp/posthog-code/v2-igdb-provider-link #3498
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
| name: Run Typescript Typecheck | |
| on: | |
| pull_request: | |
| paths: | |
| - "frontend/**" | |
| push: | |
| branches: | |
| - "master" | |
| paths: | |
| - "frontend/**" | |
| permissions: read-all | |
| jobs: | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| checks: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4.3.0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v5.0.0 | |
| with: | |
| node-version-file: frontend/.nvmrc | |
| cache: "npm" | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| working-directory: frontend | |
| - name: Run typecheck | |
| run: npm run typecheck | |
| working-directory: frontend | |
| - name: Lockfile lint | |
| run: | | |
| [ -z "$(jq -r '.packages | to_entries[] | select((.key | contains("node_modules")) and (.value.resolved | contains("git+ssh") | not) and (.value | has("resolved") and has("integrity") | not)) | .key' < package-lock.json)" ] | |
| working-directory: frontend |