Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full support for Multi module projects #50

Merged
merged 48 commits into from
Jul 25, 2023
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
65e0b55
Add validation for required inputs
thsaravana Jul 23, 2023
03f18cc
Tech Debt - Adding eslint
thsaravana Jul 23, 2023
23e2b02
Tech Debt - Adding prettier and fixing existing issues
thsaravana Jul 23, 2023
a3db001
Tech Debt - Removing webpack
thsaravana Jul 23, 2023
c301c80
Tech Debt - Fixing warnings
thsaravana Jul 23, 2023
56d58c0
Tech Debt - Fixing single quote
thsaravana Jul 23, 2023
d73519c
Tech Debt - Turning off the dot-notation rule
thsaravana Jul 23, 2023
d399b61
Tech Debt - Cleaning up test file warnings
thsaravana Jul 23, 2023
f9e1102
Tech Debt - Fixing the context const issue in test files
thsaravana Jul 23, 2023
80c5d32
Send the Modules coverage information to action from process
thsaravana Jul 24, 2023
bc4b4ae
Passing coverage-changed-files from process
thsaravana Jul 24, 2023
37752cb
Adding Module table (removed files table temporarily)
thsaravana Jul 24, 2023
96a2946
Adding Files table back in
thsaravana Jul 24, 2023
a49faa0
Fixing the table formatting issues
thsaravana Jul 24, 2023
b4419c6
Fixing the Files status issue
thsaravana Jul 24, 2023
f2367a9
Render will add PR comment for Single and Multi module
thsaravana Jul 24, 2023
53e9167
Fixing the action test cases
thsaravana Jul 24, 2023
5345c33
Testing the glob pattern matching
thsaravana Jul 24, 2023
7a2a3d7
Testing the glob pattern matching
thsaravana Jul 24, 2023
575fff8
Using globSync
thsaravana Jul 24, 2023
37b3821
Logging path
thsaravana Jul 24, 2023
6b8f1ae
Filtering empty paths
thsaravana Jul 24, 2023
33ad78e
typeof check for path returned
thsaravana Jul 24, 2023
d62784f
Fixing the path type
thsaravana Jul 24, 2023
fb12b7b
Fixing the path type
thsaravana Jul 24, 2023
e581f33
Debugging the getJsonReports function
thsaravana Jul 24, 2023
faa89e8
Passing array directly to globSync
thsaravana Jul 24, 2023
eada1b7
Replacing globSync with glob
thsaravana Jul 24, 2023
f93e18a
Testing the @actions/glob
thsaravana Jul 24, 2023
b366372
Revert "Testing the @actions/glob"
thsaravana Jul 24, 2023
848a823
Revert "Replacing globSync with glob"
thsaravana Jul 24, 2023
a804e0a
Revert "Passing array directly to globSync"
thsaravana Jul 24, 2023
9de483f
Revert "Debugging the getJsonReports function"
thsaravana Jul 24, 2023
e039c82
Revert "Fixing the path type"
thsaravana Jul 24, 2023
1006fe4
Revert "typeof check for path returned"
thsaravana Jul 24, 2023
919d0cc
Revert "Filtering empty paths"
thsaravana Jul 24, 2023
5cf2f33
Revert "Logging path"
thsaravana Jul 24, 2023
a9a0936
Revert "Using globSync"
thsaravana Jul 24, 2023
ac6f5b6
Revert "Testing the glob pattern matching"
thsaravana Jul 24, 2023
f8177ac
Using @actions/glob to support wildcards in paths
thsaravana Jul 24, 2023
67465d2
Deleting webpack.config.js
thsaravana Jul 24, 2023
8f21b1f
Adding more debug logs
thsaravana Jul 24, 2023
e2df100
Running Lint in CI
thsaravana Jul 25, 2023
9635a47
Improving code coverage
thsaravana Jul 25, 2023
c51b286
Updating CI to use node16
thsaravana Jul 25, 2023
2897966
Adding test for missing cases
thsaravana Jul 25, 2023
0adc085
Updating README.md
thsaravana Jul 25, 2023
05774d6
Updating screenshots
thsaravana Jul 25, 2023
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
Prev Previous commit
Next Next commit
Fixing the path type
thsaravana committed Jul 24, 2023
commit fb12b7bf43e19143d1da2e5bd5671512b725ef70
9 changes: 3 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -16985,17 +16985,14 @@ async function action() {

async function getJsonReports(xmlPaths, debugMode) {
if (debugMode) core.info(`xmlPaths: ${xmlPaths}`)
const paths = xmlPaths.map((xmlPath) => globSync(xmlPath))
const paths = xmlPaths.flatMap((xmlPath) => globSync(xmlPath))
if (debugMode) core.info(`paths: ${paths} : ${typeof paths}`)
return Promise.all(
paths
.filter((path) => path && path.fullPath().length !== 0)
.filter((path) => path && path.length !== 0)
.map(async (path) => {
if (debugMode) core.info(`path: ${path} : ${typeof path}`)
const reportXml = await fs.promises.readFile(
path.fullPath().trim(),
'utf-8'
)
const reportXml = await fs.promises.readFile(path.trim(), 'utf-8')
return await parser.parseStringPromise(reportXml)
})
)