Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
bae3ad7
Merge pull request #1 from deepprakash345/main
deepprakash345 Jun 9, 2022
2262633
asdasd
deepprakash345 Jun 9, 2022
fc1c664
dasdasdasd
deepprakash345 Jun 9, 2022
9d780c1
added changes
deepprakash345 Jun 9, 2022
2f91a83
asdasdasd
deepprakash345 Jun 10, 2022
7b8da15
asdasdasd
deepprakash345 Jun 10, 2022
300e352
dasdasdasd
deepprakash345 Jun 10, 2022
2e52964
asdasdasdasd
deepprakash345 Jun 10, 2022
6fb3fdb
test coverage,.....
deepprakash345 Jun 10, 2022
34a3a68
asdasdasdasd
deepprakash345 Jun 10, 2022
086c277
diff-cover installation added
deepprakash345 Jun 10, 2022
9eaebe3
asd
deepprakash345 Jun 10, 2022
aea41ff
added
deepprakash345 Jun 10, 2022
1554fe2
asdds
deepprakash345 Jun 10, 2022
2d85a62
added changes
deepprakash345 Jun 10, 2022
b1229b4
added
deepprakash345 Jun 10, 2022
29663a3
changes
deepprakash345 Jun 10, 2022
f16f488
updated checkbox.ts
deepprakash345 Jun 10, 2022
f56a101
updated................
deepprakash345 Jun 10, 2022
fc1e8b6
addedddd
deepprakash345 Jun 10, 2022
b2db05c
removed Checkboxs file.......
Jun 10, 2022
0c05702
added changes......
deepprakash345 Jun 10, 2022
a559d60
dddddd
deepprakash345 Jun 10, 2022
1618480
added
deepprakash345 Jun 10, 2022
c3b8241
added check
deepprakash345 Jun 10, 2022
60a1106
ads
deepprakash345 Jun 10, 2022
bbaba4c
Added changes....
deepprakash345 Jun 10, 2022
b14cb82
adding ssh
deepprakash345 Jun 13, 2022
ac75e1e
asdasdasd
deepprakash345 Jun 13, 2022
c6e6c1c
updated package.json
deepprakash345 Jun 13, 2022
31ff7b0
made changes...
deepprakash345 Jun 13, 2022
bbb7b28
added changes...
deepprakash345 Jun 13, 2022
bba0539
removed webpack
deepprakash345 Jun 13, 2022
eab295a
added changes...
deepprakash345 Jun 13, 2022
1943f73
added changes
deepprakash345 Jun 13, 2022
329fd27
added changes...
deepprakash345 Jun 13, 2022
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
38 changes: 20 additions & 18 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ on:
pull_request:
branches: [ "open","main" ]

env:
BUILDER_DOCKER_NAME: "af2-web-runtime-builder"
BUILDER_DOCKER_NAME_14: "af2-web-runtime-builder_14"
DOCKERCOMMAND: "docker run -u `id -u` --rm -v `pwd`:/app $BUILDER_DOCKER_NAME sh -c "
DOCKER14COMMAND: "docker run --rm -v `pwd`:/app $BUILDER_DOCKER_NAME_14 sh -c "
jobs:
buildProject:
runs-on: ubuntu-latest
Expand All @@ -26,6 +21,10 @@ jobs:
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- uses: actions/setup-java@v3
with:
distribution: 'zulu' # See 'Supported distributions' for available options
Expand All @@ -43,15 +42,13 @@ jobs:
- name: test-with-node-14
run: |
echo ${{matrix.node}}
npm config set unsafe-perm true
npm -v
npm ci --ignore-scripts
npx lerna bootstrap --ci --strict
# npm ci --ignore-scripts
# npx lerna run build
# npx lerna run test
# npx lerna run clean
# rm -rf node_modules packages/*/node_modules
npm config set unsafe-perm true
npm ci --ignore-scripts
npx lerna bootstrap --ci --strict
npx lerna run build
npx lerna run test
npx lerna run clean
rm -rf node_modules packages/*/node_modules
if: ${{matrix.node==14}}
- name: build-package-with-latest-node
run: |
Expand All @@ -64,10 +61,15 @@ jobs:
npx lerna run test:ci
if: ${{matrix.node=='latest'}}
- name: diff-coverage
if: github.event_name == 'pull_request'
if: ${{github.event_name == 'pull_request' && matrix.node=='latest'}}
run: |
ls
diff-cover --html-report packages/forms-next-core/target/coverage/diff-cover.html --compare-branch ${{github.event.pull_request.base.ref}} packages/forms-next-core/target/coverage/cobertura-coverage.xml --fail-under=90

pip install diff-cover
git fetch --no-tags --depth=500 origin main
git fetch --no-tags --depth=500 origin open
diff-cover --html-report packages/aem-forms-af-core/target/coverage/diff-cover.html --compare-branch origin/${{github.event.pull_request.base.ref}} packages/aem-forms-af-core/target/coverage/cobertura-coverage.xml --fail-under=90
diff-cover --html-report packages/aem-forms-af-react-components/target/coverage/diff-cover.html --compare-branch origin/${{github.event.pull_request.base.ref}} packages/aem-forms-af-react-components/target/coverage/cobertura-coverage.xml --fail-under=90

# diff-cover --html-report packages/forms-next-core/target/coverage/diff-cover.html --compare-branch ${{github.event.pull_request.base.ref}} packages/forms-next-core/target/coverage/cobertura-coverage.xml --fail-under=90



4 changes: 2 additions & 2 deletions packages/aem-forms-af-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
"test": "jest --silent",
"eslint": "npx eslint src/**",
"eslint:fix": "npx eslint --fix src/**",
"test-ci": "jest --silent --coverage",
"test:ci": "jest --silent --coverage",
"build": "npm run eslint && npx tsc",
"build-libs": "npx tsc",
"clean": "rm -rf lib coverage",
"prepublishOnly": "npm run build && npm run test",
"docs": "npx typedoc --options .typedoc.cjs"
},
"dependencies": {
"@adobe/json-formula": "git+https://github.com/adobe/json-formula.git#e246367c091948140db6f581806114ee482dcd1a"
"@adobe/json-formula": "git+https://git@github.com/adobe/json-formula.git#e246367c091948140db6f581806114ee482dcd1a"
},
"devDependencies": {
"@types/jest": "26.0.24",
Expand Down
2 changes: 1 addition & 1 deletion packages/aem-forms-af-core/src/Checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ class Checkbox extends Field {
}
}

export default Checkbox;
export default Checkbox;
2 changes: 1 addition & 1 deletion packages/aem-forms-af-react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"eslint": "npx eslint src/**/*.ts*",
"build": "npm run eslint && npx tsc && cp src/styles.css lib",
"build-libs": "npx tsc && cp src/styles.css lib",
"test-ci": "jest --silent --coverage",
"test:ci": "jest --silent --coverage",
"prepublishOnly": "npm run build && npm run test",
"test": "jest --silent",
"storybook": "start-storybook -p 6006",
Expand Down
4 changes: 2 additions & 2 deletions packages/forms-headless-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"babel-loader": "8.1.0",
"jest": "26.6.0",
"ts-jest": "26.5.6",
"typescript": "^4.3.5",
"webpack": "^5.5.0"
"typescript": "^4.3.5"

},
"scripts": {
"start": "react-scripts start",
Expand Down
4 changes: 2 additions & 2 deletions packages/performance-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"build": "CI=false && react-scripts build",
"test": "react-scripts test --passWithNoTests",
"eject": "react-scripts eject"
},
"eslintConfig": {
Expand Down