Skip to content

Commit 306d8e0

Browse files
committed
fix: use report, not file in docs, tests
1 parent 3a0cc1f commit 306d8e0

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

.editorconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
1010

11-
[*.md]
12-
# code blocks in lists get confused with only 2 spaces
13-
indent_size = 4
14-
1511
[*.tf]
1612
indent_size = 4
1713

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ steps:
77
- command: npm test
88
plugins:
99
- check-run-reporter/check-run-reporter#v1.0.0:
10-
file: 'reports/junit/**/*.xml'
11-
token: '<your repo token>'
10+
report: 'reports/junit/**/*.xml'
11+
token: '<your repo token>'
1212
```
1313
1414
## Configuration

hooks/post-command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ CMD="$CMD -F label'=$LABEL'"
1414
CMD="$CMD -F root='$ROOT'"
1515
CMD="$CMD -F sha='$SHA'"
1616

17-
for FILE in $BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_FILE; do
17+
for FILE in $BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_REPORT; do
1818
echo "Preparing to upload '$FILE' to Check Run Reporter"
1919
CMD="$CMD -F 'report=@$(pwd)/$FILE'"
2020
done

tests/post-command.bats

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ load '/usr/local/lib/bats/load.bash'
99

1010
export BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_LABEL='BATS: Single Report Upload'
1111
export BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_TOKEN=42bbb14a-ef66-4e88-8bdb-1507d6e7adc0
12-
export BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_FILE=tests/success.xml
12+
export BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_REPORT=tests/success.xml
1313

1414
run "$PWD/hooks/post-command"
1515

@@ -24,7 +24,7 @@ load '/usr/local/lib/bats/load.bash'
2424

2525
export BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_LABEL='BATS: Multi Report Upload'
2626
export BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_TOKEN=42bbb14a-ef66-4e88-8bdb-1507d6e7adc0
27-
export BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_FILE=tests/**/*.xml
27+
export BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_REPORT=tests/**/*.xml
2828

2929
run "$PWD/hooks/post-command"
3030

@@ -39,7 +39,7 @@ load '/usr/local/lib/bats/load.bash'
3939

4040
export BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_LABEL='BATS: Single Report Upload'
4141
export BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_TOKEN='not-a-token'
42-
export BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_FILE=tests/success.xml
42+
export BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_REPORT=tests/success.xml
4343

4444
run "$PWD/hooks/post-command"
4545

0 commit comments

Comments
 (0)