Skip to content

Commit 836665e

Browse files
authored
Merge pull request #473 from ForgeRock/develop
release 4.5
2 parents 0792fa1 + 9f1d0ec commit 836665e

630 files changed

Lines changed: 43755 additions & 86131 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.

.changeset/config.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

.devcontainer/Dockerfile

Lines changed: 0 additions & 46 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

.dockerignore

Lines changed: 0 additions & 32 deletions
This file was deleted.

.env.example

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1 @@
1-
# Core Variables (required for all samples)
2-
AM_URL=$AM_URL
3-
REALM_PATH=$REALM_PATH
4-
SCOPE=$SCOPE
5-
TIMEOUT=$TIMEOUT
6-
WEB_OAUTH_CLIENT=$WEB_OAUTH_CLIENT
7-
8-
# Additional for Central & Embedded Login
9-
REDIRECT_URI=$REDIRECT_URI
10-
CENTRAL_LOGIN_CLIENT=$CENTRAL_LOGIN_CLIENT
11-
12-
# Embedded Login Only
13-
TREE=$TREE
14-
15-
# Additional for Angular & React Samples
16-
# APP_URL=$APP_URL # not using this for preview-environment instead, we can use window.location.href
17-
API_URL=$API_URL
18-
DEBUGGER_OFF=true
19-
DEVELOPMENT=$DEVELOPMENT
20-
JOURNEY_LOGIN=$JOURNEY_LOGIN
21-
JOURNEY_REGISTER=$JOURNEY_REGISTER
22-
PORT=$PORT
23-
REST_OAUTH_CLIENT=$REST_OAUTH_CLIENT
24-
REST_OAUTH_SECRET=$REST_OAUTH_SECRET
1+
NX_ADD_PLUGINS=false

.eslintrc.json

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,31 @@
7171
{
7272
"files": ["*.ts", "*.tsx", "!*.spec.ts", "!*.test*.ts"],
7373
"extends": ["plugin:@nx/typescript"],
74-
7574
"rules": {
7675
"@typescript-eslint/no-unused-vars": [
7776
"error",
78-
{ "ignoreRestSiblings": true }
79-
]
77+
{
78+
"ignoreRestSiblings": true
79+
}
80+
],
81+
"@typescript-eslint/no-extra-semi": "error",
82+
"no-extra-semi": "off"
8083
}
8184
},
8285
{
8386
"files": ["*.js", "*.jsx"],
8487
"extends": ["plugin:@nx/javascript"],
85-
"rules": {}
88+
"rules": {
89+
"quotes": [
90+
"error",
91+
"single",
92+
{
93+
"allowTemplateLiterals": true
94+
}
95+
],
96+
"@typescript-eslint/no-extra-semi": "error",
97+
"no-extra-semi": "off"
98+
}
8699
},
87100
{
88101
"files": "*.json",

.github/workflows/ci.yml

Lines changed: 20 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -7,96 +7,31 @@ env:
77
NX_CLOUD_DISTRIBUTED_EXECUTION: true
88
jobs:
99
pr:
10-
runs-on: macos-latest
10+
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
with:
14-
ref: ${{ github.event.pull_request.head.ref }}
15-
repository: ${{github.event.pull_request.head.repo.full_name}}
1614
fetch-depth: 0
17-
- uses: actions/setup-node@v3
15+
- uses: pnpm/action-setup@v4
16+
with:
17+
run_install: false
18+
- uses: actions/setup-node@v4
1819
id: cache
1920
with:
20-
node-version: '18.12.1'
21-
cache: 'npm'
22-
cache-dependency-path: '**/package-lock.json'
23-
- name: Setup custom host for sdkapp.example.com
24-
run: |
25-
sudo echo "127.0.0.1 localhost sdkapp.example.com auth.example.com api.example.com user.example.com" | sudo tee -a /etc/hosts
26-
sudo echo "::1 ip6-localhost ip6-loopback" | sudo tee -a /etc/hosts
21+
node-version: '20.10.0'
22+
cache: 'pnpm'
2723

28-
- name: npm install
29-
# if: steps.cache.outputs.cache-hit != 'true'
30-
run: npm ci
31-
env:
32-
DEBUG: pw:install
33-
# PLAYWRIGHT_BROWSERS_PATH: 0
34-
PLAYWRIGHT_SKIP_BROWSERS_DOWNLOAD: 1
35-
- run: npx playwright install chromium firefox webkit
36-
- name: Derive appropriate SHAs for base and head for `nx affected` commands
37-
uses: nrwl/nx-set-shas@v2
38-
with:
39-
main-branch-name: 'develop'
40-
- run: npm install @nrwl/nx-cloud
41-
- run: npx nx-cloud start-ci-run
24+
- run: pnpm install --frozen-lockfile
4225

43-
- run: npx nx affected --t build --parallel --max-parallel=3
44-
- run: npx nx affected --t lint --parallel --max-parallel=3
45-
- run: npx nx affected --t test --parallel --max-parallel=3
46-
- run: npx nx affected --t test --configuration=integration
47-
- run: npx nx affected -t e2e --exclude=token-vault-suites
48-
# It's important that we always run this step, otherwise in the case of any failures in preceding non-Nx steps, the agents will keep running and waste billable minutes
49-
- name: Stop All Agents
50-
if: ${{ always() }}
51-
run: npx nx-cloud stop-all-agents
26+
# This line enables distribution
27+
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "e2e-ci" targets have been requested
28+
- run: pnpm dlx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="e2e-ci" --verbose
5229

53-
- name: 'Artifacts'
54-
uses: actions/upload-artifact@v3
55-
with:
56-
retention-days: 5
57-
if-no-files-found: ignore
58-
path: |
59-
${{ github.workspace }}/e2e/autoscript-suites/test-results
60-
- name: Slack Notify
61-
id: slack
62-
uses: slackapi/slack-github-action@v1.18.0
63-
with:
64-
payload: |
65-
{
66-
"title": "${{ github.event.pull_request.title }}",
67-
"author": "${{ github.event.pull_request.user.login }}",
68-
"pr_number": "${{ github.event.pull_request.number}}",
69-
"url": "${{ github.event.pull_request.html_url }}"
70-
}
71-
env:
72-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
73-
agents:
74-
runs-on: macos-latest
75-
name: Agent Mac
76-
strategy:
77-
matrix:
78-
agent: [1, 2, 3]
79-
steps:
80-
- uses: actions/checkout@v3
81-
with:
82-
ref: ${{ github.event.pull_request.head.ref }}
83-
repository: ${{github.event.pull_request.head.repo.full_name}}
84-
fetch-depth: 0
85-
- uses: actions/setup-node@v3
86-
with:
87-
node-version: '16.13.1'
88-
cache: 'npm'
89-
cache-dependency-path: '**/package-lock.json'
90-
- run: npm ci
91-
if: steps.cache.outputs.cache-hit != 'true'
92-
env:
93-
# PLAYWRIGHT_BROWSERS_PATH: 0
94-
PLAYWRIGHT_SKIP_BROWSERS_DOWNLOAD: 1
95-
- run: npm install @nrwl/nx-cloud
96-
- name: Setup custom host for sdkapp.example.com
97-
run: |
98-
sudo echo "127.0.0.1 sdkapp.example.com auth.example.com api.example.com user.example.com" | sudo tee -a /etc/hosts
99-
sudo echo "::1 ip6-localhost ip6-loopback" | sudo tee -a /etc/hosts
100-
- run: npx playwright install chromium firefox webkit
101-
- name: Start Nx Agent ${{ matrix.agent }}
102-
run: npx nx-cloud start-agent
30+
- run: pnpm exec playwright install
31+
32+
- uses: nrwl/nx-set-shas@v4
33+
# This line is needed for nx affected to work when CI is running on a PR
34+
- run: git branch --track develop origin/develop
35+
36+
- run: pnpm exec nx-cloud record -- nx format:check --verbose
37+
- run: pnpm exec nx affected -t build lint test e2e-ci --verbose

.github/workflows/commit-check.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)