Skip to content

Commit 381b485

Browse files
authored
Merge pull request #570 from scala-js/bug/prePR
Fix api report validation
2 parents d4dfe6a + 871a6bd commit 381b485

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

api-reports/validate

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
#!/bin/bash
22
set -euo pipefail
3-
cd "$(dirname "$0")"
43

54
[ $# -ne 1 ] && echo "Usage: $0 <scala version>" && exit 1
65

6+
cd "$(dirname "$0")/.."
7+
sbt -DCI=1 "++$1" dom/scalafix
8+
9+
cd "$(dirname "$0")"
710
series="${1%.*}"
811
file="${series/./_}.txt"
912
echo -n "Validating $file ... "
1013

11-
help='Run `sbt +compile` and check in the differences to the '"$(basename "$0") directory"
14+
help='Run `sbt prePR` and check in the differences to the '"$(basename "$0") directory"
1215

1316
if [ ! -e "$file" ]; then
1417
echo "file not found. $help"

0 commit comments

Comments
 (0)