Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 60 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,66 @@
name: Pull Request Checks

on:
pull_request:
branches:
- master
push:
workflow_dispatch:

jobs:
pr-checks:
runs-on: ubuntu-latest
name: PR Validation & Testing

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Derive appropriate SHAs for base and head for nx affected commands
uses: nrwl/nx-set-shas@v4

- name: Run build on affected projects
run: npx nx affected --target=build --parallel=3
continue-on-error: false

- name: Run lint on affected projects
run: npx nx affected --target=lint --parallel=3
continue-on-error: false

- name: Run typecheck on affected projects
run: npx nx affected --target=typecheck --parallel=3
continue-on-error: false

- name: Run tests on affected projects
run: npx nx affected --target=test --parallel=3 --coverage
continue-on-error: false

- name: Run Nx release dry-run
id: nx-release-dry-run
run: |
echo "Running Nx release in dry-run mode..."
npx nx release --dry-run --first-release --verbose 2>&1 | tee release-output.txt
EXIT_CODE=${PIPESTATUS[0]}

if [ $EXIT_CODE -ne 0 ]; then
echo "L Nx release dry-run FAILED with exit code $EXIT_CODE"
echo "release_status=failed" >> $GITHUB_OUTPUT
exit $EXIT_CODE
else
echo " Nx release dry-run SUCCEEDED"
echo "release_status=success" >> $GITHUB_OUTPUT
fi
continue-on-error: false

github-action-show-version:
runs-on: ubuntu-latest
name: Next version is
Expand All @@ -12,4 +69,4 @@ jobs:
uses: rvsia/github-action-show-version@v1.9alpha
id: comment
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 2 additions & 0 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Pull Request Checks

on:
pull_request:
branches:
- '**'
push:
workflow_dispatch:

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,6 @@ packages/**/size-snapshot.json
.nvmrc

.DS_STORE

# NX cache
.nx/
109 changes: 109 additions & 0 deletions .nx/cache/run.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"run": {
"command": "nx run-many --target=test --all",
"startTime": "2025-10-27T12:42:52.952Z",
"endTime": "2025-10-27T12:44:07.696Z",
"inner": false
},
"tasks": [
{
"taskId": "@data-driven-forms/common:test",
"target": "test",
"projectName": "@data-driven-forms/common",
"hash": "5474115531971416670",
"startTime": "2025-10-27T12:42:52.985Z",
"endTime": "2025-10-27T12:43:18.095Z",
"params": "",
"cacheStatus": "cache-miss",
"status": 0
},
{
"taskId": "@data-driven-forms/react-form-renderer:test",
"target": "test",
"projectName": "@data-driven-forms/react-form-renderer",
"hash": "5635973616095706731",
"startTime": "2025-10-27T12:42:52.984Z",
"endTime": "2025-10-27T12:43:18.340Z",
"params": "",
"cacheStatus": "cache-miss",
"status": 0
},
{
"taskId": "@data-driven-forms/mui-component-mapper:test",
"target": "test",
"projectName": "@data-driven-forms/mui-component-mapper",
"hash": "11153301345942955771",
"startTime": "2025-10-27T12:42:52.985Z",
"endTime": "2025-10-27T12:43:21.370Z",
"params": "",
"cacheStatus": "cache-miss",
"status": 0
},
{
"taskId": "@data-driven-forms/carbon-component-mapper:test",
"target": "test",
"projectName": "@data-driven-forms/carbon-component-mapper",
"hash": "9425004880022970378",
"startTime": "2025-10-27T12:43:18.343Z",
"endTime": "2025-10-27T12:43:50.400Z",
"params": "",
"cacheStatus": "cache-miss",
"status": 0
},
{
"taskId": "@data-driven-forms/ant-component-mapper:test",
"target": "test",
"projectName": "@data-driven-forms/ant-component-mapper",
"hash": "3357316621716226350",
"startTime": "2025-10-27T12:43:21.372Z",
"endTime": "2025-10-27T12:43:55.325Z",
"params": "",
"cacheStatus": "cache-miss",
"status": 0
},
{
"taskId": "@data-driven-forms/pf4-component-mapper:test",
"target": "test",
"projectName": "@data-driven-forms/pf4-component-mapper",
"hash": "7972509039420568453",
"startTime": "2025-10-27T12:43:18.099Z",
"endTime": "2025-10-27T12:43:55.419Z",
"params": "",
"cacheStatus": "cache-miss",
"status": 0
},
{
"taskId": "@data-driven-forms/suir-component-mapper:test",
"target": "test",
"projectName": "@data-driven-forms/suir-component-mapper",
"hash": "15872502783684996124",
"startTime": "2025-10-27T12:43:55.421Z",
"endTime": "2025-10-27T12:43:55.422Z",
"params": "",
"cacheStatus": "local-cache-hit",
"status": 0
},
{
"taskId": "@data-driven-forms/parsers:test",
"target": "test",
"projectName": "@data-driven-forms/parsers",
"hash": "6164155812005427051",
"startTime": "2025-10-27T12:43:55.328Z",
"endTime": "2025-10-27T12:44:07.023Z",
"params": "",
"cacheStatus": "cache-miss",
"status": 0
},
{
"taskId": "@data-driven-forms/blueprint-component-mapper:test",
"target": "test",
"projectName": "@data-driven-forms/blueprint-component-mapper",
"hash": "3693146128501709151",
"startTime": "2025-10-27T12:43:50.405Z",
"endTime": "2025-10-27T12:44:07.695Z",
"params": "",
"cacheStatus": "cache-miss",
"status": 0
}
]
}
Loading
Loading