Use .nvmrc in github workflows (#23071)

Co-authored-by: Satish <satish@Satishs-MacBook-Pro.local>
This commit is contained in:
satish 2025-08-23 16:11:19 +05:30 committed by GitHub
parent 9b2222fa4d
commit bc7c3499fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 16 additions and 10 deletions

View File

@ -163,7 +163,7 @@ jobs:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 18.19.0 node-version-file: 'openmetadata-ui/src/main/resources/ui/.nvmrc'
- name: Download blob reports from GitHub Actions Artifacts - name: Download blob reports from GitHub Actions Artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4

View File

@ -96,6 +96,11 @@ jobs:
args: "-d mysql" args: "-d mysql"
ingestion_dependency: "playwright" ingestion_dependency: "playwright"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: 'openmetadata-ui/src/main/resources/ui/.nvmrc'
- name: Install dependencies - name: Install dependencies
working-directory: openmetadata-ui/src/main/resources/ui/ working-directory: openmetadata-ui/src/main/resources/ui/
run: yarn --ignore-scripts --frozen-lockfile run: yarn --ignore-scripts --frozen-lockfile

View File

@ -96,6 +96,11 @@ jobs:
args: "-d postgresql" args: "-d postgresql"
ingestion_dependency: "playwright" ingestion_dependency: "playwright"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: 'openmetadata-ui/src/main/resources/ui/.nvmrc'
- name: Install dependencies - name: Install dependencies
working-directory: openmetadata-ui/src/main/resources/ui/ working-directory: openmetadata-ui/src/main/resources/ui/
run: yarn --ignore-scripts --frozen-lockfile run: yarn --ignore-scripts --frozen-lockfile

View File

@ -163,7 +163,7 @@ jobs:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 18.19.0 node-version-file: 'openmetadata-ui/src/main/resources/ui/.nvmrc'
- name: Download blob reports from GitHub Actions Artifacts - name: Download blob reports from GitHub Actions Artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4

View File

@ -44,7 +44,7 @@ jobs:
- name: Set up Node.js - name: Set up Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: "18" node-version-file: 'openmetadata-ui/src/main/resources/ui/.nvmrc'
- name: Install dependencies - name: Install dependencies
run: | run: |

View File

@ -21,9 +21,6 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
ui-coverage-tests: ui-coverage-tests:
strategy:
matrix:
node-version: [18.x]
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }} if: ${{ !github.event.pull_request.draft }}
steps: steps:
@ -78,11 +75,10 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-node- ${{ runner.os }}-node-
- name: Use Node.js ${{ matrix.node-version }} - name: Setup Node.js
if: steps.npm-cache.outputs.exit-code == 0 uses: actions/setup-node@v4
uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.node-version }} node-version-file: 'openmetadata-ui/src/main/resources/ui/.nvmrc'
- name: Install Antlr4 CLI - name: Install Antlr4 CLI
run: | run: |