Skip to content

Commit 37213d9

Browse files
authored
Merge pull request #107 from ProvarTesting/develop
Develop
2 parents b919375 + 7998053 commit 37213d9

85 files changed

Lines changed: 23780 additions & 473 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copy this file to .env and fill in real values.
2+
# .env is gitignored and must never be committed.
3+
4+
# ── Provar Licensing OAuth (Cognito client credentials) ──────────────────────
5+
# Obtain from the Provar platform team.
6+
PROVAR_OAUTH_CLIENT_ID=your-client-id-here
7+
PROVAR_OAUTH_CLIENT_SECRET=your-client-secret-here
8+
9+
# ── Dev whitelist keys (comma-separated) ─────────────────────────────────────
10+
# Keys that bypass the licensing API entirely (development / CI only).
11+
# Obtain from the Provar platform team.
12+
PROVAR_DEV_WHITELIST_KEYS=your-dev-key-here

.github/workflows/CIRelease_Tagging.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313
if: github.event.pull_request.merged == true
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 18
18+
node-version: 20
1919
- name: Install Dependencies
2020
run: |
2121
yarn

.github/workflows/CI_Execution.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,24 @@ jobs:
2222
provardx-ci-execution:
2323
strategy:
2424
matrix:
25-
os: ${{ fromJSON(format('[{0}]', inputs.OS || '"ubuntu-latest" || "macos-latest"')) }}
26-
nodeversion: [18]
25+
os: ${{ fromJSON(inputs.OS && format('[{0}]', inputs.OS) || '["ubuntu-latest", "macos-latest"]') }}
26+
nodeversion: [20]
2727
runs-on: ${{ matrix.os }}
2828
steps:
2929
- uses: actions/checkout@v4
3030
- uses: actions/setup-node@v4
3131
with:
3232
node-version: ${{ matrix.nodeversion }}
3333
- name: 'Cache node_modules'
34-
uses: actions/cache@v3
34+
uses: actions/cache@v4
3535
with:
3636
path: ${{ matrix.os == 'windows-latest' && 'C:\\Users\\runneradmin\\AppData\\Roaming\\npm-cache' || '~/.npm' }}
3737
key: ${{ runner.os }}-node-v${{ matrix.nodeversion }}-${{ hashFiles('**/package.json') }}
3838
restore-keys: |
3939
${{ runner.os }}-node-v${{ matrix.nodeversion }}-
4040
- name: 'sf installation'
4141
run: |
42-
npm install -g @salesforce/cli
42+
npm install -g @salesforce/cli
4343
4444
- name: Determine Branch Name
4545
if: matrix.os == 'windows-latest'
@@ -49,7 +49,7 @@ jobs:
4949
} else {
5050
echo "BRANCH_NAME=$(echo $env:GITHUB_REF -replace 'refs/heads/', '')" | Out-File -FilePath $env:GITHUB_ENV -Append
5151
}
52-
52+
5353
- name: Determine Branch Name for Ubuntu/Mac
5454
if: matrix.os != 'windows-latest'
5555
run: |
@@ -88,23 +88,28 @@ jobs:
8888
token: ${{ secrets.PATUTILS }}
8989
- name: Utils build and link
9090
run: |
91-
cd utils
92-
yarn && yarn prepack
93-
yarn link
91+
cd utils
92+
yarn && yarn prepack
93+
yarn link
9494
- name: Install Dependencies
9595
run: yarn
9696
- name: Link utils package
9797
run: yarn link @provartesting/provardx-plugins-utils
9898
- name: Build the project
9999
run: |
100-
sf plugins link .
101-
yarn prepack
100+
sf plugins link .
101+
yarn prepack
102+
- name: MCP smoke test
103+
timeout-minutes: 5
104+
env:
105+
PROVAR_DEV_WHITELIST_KEYS: ${{ secrets.PROVAR_DEV_WHITELIST_KEYS }}
106+
run: node scripts/mcp-smoke.cjs
102107
- name: Check out Regression repo
103108
uses: actions/checkout@v4
104109
with:
105-
repository: ProvarTesting/ProvarRegression
110+
repository: ProvarTesting/provar-manager-regression
106111
path: ProvarRegression
107-
ref: AnchalGoel
112+
ref: PM_Grid_AutomationPack
108113
token: ${{ secrets.PATREGRESSION }}
109114
- name: Change permissions
110115
run: |
@@ -119,7 +124,7 @@ jobs:
119124
sf plugins link .
120125
yarn run test:nuts
121126
- name: Archive NUTS results
122-
uses: actions/upload-artifact@v3
127+
uses: actions/upload-artifact@v4
123128
with:
124129
name: nuts-report-${{ matrix.os }}
125130
path: mochawesome-report

.github/workflows/DeployManual.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ on:
55
workflow_dispatch:
66
inputs:
77
tag:
8-
description: 'tag name e.g. beta, latest etc.'
8+
description: "tag name e.g. beta, latest etc."
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v4
1515
- name: Setup Node
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
18-
node-version: 18
19-
registry-url: 'https://registry.npmjs.org'
20-
scope: '@provartesting'
18+
node-version: 20
19+
registry-url: "https://registry.npmjs.org"
20+
scope: "@provartesting"
2121
- name: Install dependencies and build
2222
run: |
2323
npm install -g @salesforce/cli
@@ -28,6 +28,7 @@ jobs:
2828
cat /home/runner/work/_temp/.npmrc
2929
cat $NPM_CONFIG_USERCONFIG
3030
- name: Publish package on NPM
31-
run: yarn publish --tag ${{ inputs.tag }}
31+
run: npm publish --tag "$TAG" --access public
3232
env:
33+
TAG: ${{ github.event.inputs.tag || 'latest' }}
3334
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/UnpublishManual.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Setup Node
13-
uses: actions/setup-node@v3
13+
uses: actions/setup-node@v4
1414
with:
15-
node-version: 18
15+
node-version: 20
1616
registry-url: 'https://registry.npmjs.org'
1717
scope: '@provartesting'
1818
- name: Unpublish package from NPM

.gitignore

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ tmp/
44
# never checkin npm config
55
.npmrc
66

7+
# npm lockfile — this project uses yarn; suppress the warning
8+
package-lock.json
9+
710
# debug logs
811
npm-error.log
912
yarn-error.log
@@ -21,13 +24,11 @@ test/lib
2124
coverage
2225
test_session*
2326

24-
# generated docs
25-
docs
26-
2727
# ignore sfdx-trust files
2828
*.tgz
2929
*.sig
3030
package.json.bak.
31+
.sfdx
3132

3233
# -- CLEAN ALL
3334
*.tsbuildinfo
@@ -46,4 +47,14 @@ oclif.manifest.json
4647

4748

4849
#Mocha Report Directory
49-
mochawesome-report
50+
mochawesome-report
51+
.gstack/
52+
53+
# Local environment — never commit real credentials
54+
.env
55+
.env.local
56+
.env.*.local
57+
58+
# Claude
59+
.claude/skills
60+
CLAUDE.md

.husky/pre-commit

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
42
yarn lint && yarn pretty-quick --staged

.husky/pre-push

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
42
yarn build && yarn test

0 commit comments

Comments
 (0)