File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 44
44
- uses : pkgxdev/dev@v0
45
45
- run : mix deps.get
46
46
- run : mix e2e.update_examples_workflow --check
47
+ - run : bin/format --check
47
48
48
49
build :
49
50
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -euo pipefail
3
+ # This script is used to identify and fix formatting issues.
4
+ # It can be run in two modes:
5
+ #
6
+ # Usage:
7
+ # ./bin/format # To update and format the code.
8
+ # ./bin/format --check # To check for formatting issues.
9
+
10
+ if [[ $# -gt 0 && " $1 " == " --check" ]]; then
11
+ echo " Checking for formatting issues..."
12
+ mix e2e.update_examples_workflow --check
13
+ mix format --check-formatted
14
+ else
15
+ echo " Fixing formatting issues..."
16
+ mix e2e.update_examples_workflow
17
+ mix format
18
+ fi
You can’t perform that action at this time.
0 commit comments