Skip to content

Commit be57ca8

Browse files
author
Hrithik-Gavankar
committed
fix(NGUI-404): Enabled GH actions
1 parent ac038e2 commit be57ca8

File tree

4 files changed

+30
-59
lines changed

4 files changed

+30
-59
lines changed

.github/workflows/next_gen_ui_react_tests.yml renamed to .github/workflows/tests.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,28 @@ on:
44
push:
55
branches:
66
- main
7-
paths:
8-
- 'libs_js/next_gen_ui_react/**'
97
pull_request:
10-
paths:
11-
- 'libs_js/next_gen_ui_react/**'
128

139
jobs:
1410
react-tests:
1511
name: React unit tests
1612
runs-on: ubuntu-latest
17-
defaults:
18-
run:
19-
working-directory: libs_js/next_gen_ui_react
2013
steps:
2114
- name: Checkout repository
2215
uses: actions/checkout@v4
2316

2417
- name: Setup Node.js
2518
uses: actions/setup-node@v4
2619
with:
27-
node-version: 20
20+
node-version: '.nvmrc'
21+
registry-url: 'https://registry.npmjs.org'
2822
cache: npm
29-
cache-dependency-path: libs_js/next_gen_ui_react/package-lock.json
23+
cache-dependency-path: package-lock.json
3024

3125
- name: Install dependencies
3226
run: npm ci
3327

3428
- name: Run unit tests
3529
run: npm run test:ci
3630
env:
37-
CI: true
38-
39-
31+
CI: true

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

package-lock.json

Lines changed: 24 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
"test:ci": "vitest --run",
2424
"type-check": "tsc --noEmit",
2525
"lint": "eslint .",
26-
"preview": "vite preview",
27-
"prepack": "cp -f ../../LICENSE ./LICENSE"
26+
"preview": "vite preview"
2827
},
2928
"dependencies": {
3029
"@patternfly/patternfly": "^6.3.1",

0 commit comments

Comments
 (0)