Skip to content

Commit a1ee0b3

Browse files
authored
Use files instead of file (#2)
* Use files instead of file * test fix
1 parent 3b62f92 commit a1ee0b3

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ workflows:
2222
# Triggers the next workflow in the Orb Development Kit.
2323
- orb-tools/continue:
2424
pipeline_number: << pipeline.number >>
25-
vcs_type: << pipeline.project.type >>
25+
vcs_type: github
2626
orb_name: qlty-testing-orb
2727
requires: [orb-tools/lint, orb-tools/pack, orb-tools/review, shellcheck/check]
2828
filters: *filters

.circleci/test-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
steps:
4545
- checkout
4646
- qlty-testing-orb/coverage_publish:
47-
file: coverage/coverage.json
47+
files: coverage/coverage.json
4848
working_directory: ~/project/fixtures/basic-ruby
4949
workflows:
5050
test-deploy:

src/commands/coverage_publish.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: |
44
55
Note: For Alpine-based executors, ensure that `coreutils` and `curl` are installed.
66
parameters:
7-
file:
8-
description: Path to the code coverage report file to upload.
7+
files:
8+
description: Path to the code coverage report files to upload.
99
type: string
1010
default: ""
1111
tag:
@@ -65,7 +65,7 @@ steps:
6565
name: Publish Coverage Results
6666
command: <<include(scripts/publish)>>
6767
environment:
68-
PARAM_FILE: << parameters.file >>
68+
PARAM_FILES: << parameters.files >>
6969
PARAM_TAG: << parameters.tag >>
7070
PARAM_TRANSFORM_ADD_PREFIX: << parameters.transform_add_prefix >>
7171
PARAM_TRANSFORM_STRIP_PREFIX: << parameters.transform_strip_prefix >>
@@ -74,4 +74,3 @@ steps:
7474
PARAM_OVERRIDE_BUILD_ID: << parameters.override_build_id >>
7575
PARAM_TOKEN: << parameters.token >>
7676
PARAM_WORKING_DIRECTORY: << parameters.working_directory >>
77-

src/examples/example.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ usage:
1414
- run: npm install
1515
- run: npm test
1616
- qlty/coverage_publish:
17-
file: coverage/lcov.info
17+
files: coverage/lcov.info
1818
workflows:
1919
test_and_publish_coverage:
2020
jobs:

src/scripts/publish

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ WORKING_DIRECTORY="${PARAM_WORKING_DIRECTORY/#\~/$HOME}"
3636
cd "$WORKING_DIRECTORY" || exit
3737

3838
# Build the command
39-
if [[ -n $PARAM_FILE ]]; then
40-
command="$QLTY_CMD coverage publish \"$PARAM_FILE\" ${params[@]}"
39+
if [[ -n $PARAM_FILES ]]; then
40+
command="$QLTY_CMD coverage publish \"$PARAM_FILES\" ${params[@]}"
4141
else
4242
command="$QLTY_CMD coverage publish ${params[@]}"
4343
fi

0 commit comments

Comments
 (0)