File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+ on :
3+ push :
4+ branches :
5+ - ' main'
6+ pull_request :
7+ paths-ignore :
8+ - ' LICENSE*'
9+ - ' DOCKERFILE*'
10+ - ' **.gitignore'
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - name : Setup Go
18+ uses : actions/setup-go@v5
19+ with :
20+ go-version : ' 1.22.2'
21+
22+ - name : Clean
23+ working-directory : clients/ui/bff
24+ run : make clean
25+
26+ - name : Build
27+ working-directory : clients/ui/bff
28+ run : make build
29+
30+ - name : Check if there are uncommitted file changes
31+ working-directory : clients/ui/bff
32+ run : |
33+ clean=$(git status --porcelain)
34+ if [[ -z "$clean" ]]; then
35+ echo "Empty git status --porcelain: $clean"
36+ else
37+ echo "Uncommitted file changes detected: $clean"
38+ git diff
39+ exit 1
You can’t perform that action at this time.
0 commit comments