Skip to content

Commit

Permalink
Merge pull request #58 from yutailang0119/feature/glob
Browse files Browse the repository at this point in the history
Support glob for xml_path
  • Loading branch information
yutailang0119 committed Mar 18, 2021
2 parents e8a9d16 + 8c8cf93 commit 35d1ea8
Show file tree
Hide file tree
Showing 9 changed files with 2,680 additions and 4,221 deletions.
6 changes: 1 addition & 5 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ import * as path from 'path'

// shows how the runner will run a javascript action with env / stdout protocol
test('test runs', () => {
process.env['INPUT_XML_PATH'] = path.join(
__dirname,
'resource',
'sample-lint-results.xml'
)
process.env['INPUT_XML_PATH'] = path.join(__dirname, 'resource', '*.xml')
const ip = path.join(__dirname, '..', 'lib', 'main.js')
const options: cp.ExecSyncOptions = {
env: process.env
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ inputs:
xml_path:
description: 'The file path of the XML lint report produced by gradle'
required: true
follow-symbolic-links:
description: 'Indicates whether to follow symbolic links'
default: true
runs:
using: 'node12'
main: 'dist/index.js'
Expand Down

0 comments on commit 35d1ea8

Please sign in to comment.