From fdb07f650f846af8d015f240f082a765c235b149 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 28 Oct 2024 16:20:50 -0700 Subject: [PATCH] add npm install step --- .github/workflows/dev_pr.yaml | 5 +++++ .github/workflows/jetbrains-release.yaml | 1 - .github/workflows/ts-check.yaml | 12 ++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev_pr.yaml b/.github/workflows/dev_pr.yaml index dafa51a87..ed57df584 100644 --- a/.github/workflows/dev_pr.yaml +++ b/.github/workflows/dev_pr.yaml @@ -4,6 +4,7 @@ on: pull_request: branches: - dev + - dallin/lint-modules jobs: tsc-check: @@ -50,6 +51,10 @@ jobs: path: binary/node_modules key: ${{ runner.os }}-node-${{ hashFiles('binary/package-lock.json') }} + - name: Install Root Dependencies + run: | + npm ci + - name: extensions/vscode install run: | cd extensions/vscode diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index 9fc410b38..b28e29c0c 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -97,7 +97,6 @@ jobs: with: node-version-file: ".nvmrc" - # Cache node_modules - name: Cache core node_modules uses: actions/cache@v3 with: diff --git a/.github/workflows/ts-check.yaml b/.github/workflows/ts-check.yaml index f73016fa5..97bc39d7c 100644 --- a/.github/workflows/ts-check.yaml +++ b/.github/workflows/ts-check.yaml @@ -21,6 +21,12 @@ jobs: with: node-version-file: ".nvmrc" + - name: Cache root node_modules + uses: actions/cache@v3 + with: + path: node_modules + key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} + - name: Cache extension node_modules uses: actions/cache@v3 with: @@ -45,6 +51,10 @@ jobs: path: binary/node_modules key: ${{ runner.os }}-node-${{ hashFiles('binary/package-lock.json') }} + - name: Install Root Dependencies + run: | + npm ci + - name: Install extension Dependencies run: | cd extensions/vscode @@ -72,11 +82,13 @@ jobs: run: | cd core npx tsc --noEmit + npm run lint - name: tsc extensions/vscode run: | cd extensions/vscode npx tsc --noEmit + npm run lint - name: tsc binary run: |