diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index db22b76f..ced5f98d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -59,7 +59,7 @@ jobs: scarb-version: "2.8.2" - name: Format - run: ./bin/format_exercises.sh + run: ./bin/format_exercises.sh --check - name: Diff run: | diff --git a/bin/format_exercises.sh b/bin/format_exercises.sh index 3e14ef8b..b97c21a7 100755 --- a/bin/format_exercises.sh +++ b/bin/format_exercises.sh @@ -37,7 +37,7 @@ for exercise_dir in $exercises; do # move the solution file into the package cp "$solution_file" "$tmp_file" - scarb fmt + scarb fmt "$@" # move the solution file back cp "$tmp_file" "$solution_file"