@@ -2,19 +2,13 @@ name: Backend Data - Build and Lint
22
33on :
44 push :
5- branches : [ main, develop ]
5+ branches : [main, develop]
66 paths :
7- - ' PhantomDave.BankTracking.Data/**'
8- - ' PhantomDave.BankTracking.Library/**'
9- - ' PhantomDave.BankTracking.sln'
10- - ' .github/workflows/backend-data.yml'
11- pull_request :
12- branches : [ main, develop ]
13- paths :
14- - ' PhantomDave.BankTracking.Data/**'
15- - ' PhantomDave.BankTracking.Library/**'
16- - ' PhantomDave.BankTracking.sln'
17- - ' .github/workflows/backend-data.yml'
7+ - " PhantomDave.BankTracking.Data/**"
8+ - " PhantomDave.BankTracking.Library/**"
9+ - " PhantomDave.BankTracking.sln"
10+ - " .github/workflows/backend-data.yml"
11+ workflow_call :
1812
1913jobs :
2014 build-and-lint :
@@ -24,28 +18,28 @@ jobs:
2418 contents : write
2519
2620 steps :
27- - name : Checkout code
28- uses : actions/checkout@v5
29- with :
30- token : ${{ secrets.GITHUB_TOKEN }}
31-
32- - name : Setup .NET
33- uses : actions/setup-dotnet@v5
34- with :
35- dotnet-version : ' 9.0.x'
36-
37- - name : Restore dependencies
38- run : dotnet restore PhantomDave.BankTracking.Data/PhantomDave.BankTracking.Data.csproj
39-
40- - name : Format code
41- run : dotnet format PhantomDave.BankTracking.Data/PhantomDave.BankTracking.Data.csproj --verbosity diagnostic
42-
43- - name : Commit formatted code
44- uses : stefanzweifel/git-auto-commit-action@v7
45- if : github.event_name == 'push'
46- with :
47- commit_message : ' chore: auto-format Backend Data code'
48- file_pattern : ' PhantomDave.BankTracking.Data/**'
49-
50- - name : Build
51- run : dotnet build PhantomDave.BankTracking.Data/PhantomDave.BankTracking.Data.csproj --configuration Release --no-restore
21+ - name : Checkout code
22+ uses : actions/checkout@v5
23+ with :
24+ token : ${{ secrets.GITHUB_TOKEN }}
25+
26+ - name : Setup .NET
27+ uses : actions/setup-dotnet@v5
28+ with :
29+ dotnet-version : " 9.0.x"
30+
31+ - name : Restore dependencies
32+ run : dotnet restore PhantomDave.BankTracking.Data/PhantomDave.BankTracking.Data.csproj
33+
34+ - name : Format code
35+ run : dotnet format PhantomDave.BankTracking.Data/PhantomDave.BankTracking.Data.csproj --verbosity diagnostic
36+
37+ - name : Commit formatted code
38+ uses : stefanzweifel/git-auto-commit-action@v7
39+ if : github.event_name == 'push'
40+ with :
41+ commit_message : " chore: auto-format Backend Data code"
42+ file_pattern : " PhantomDave.BankTracking.Data/**"
43+
44+ - name : Build
45+ run : dotnet build PhantomDave.BankTracking.Data/PhantomDave.BankTracking.Data.csproj --configuration Release --no-restore
0 commit comments