File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : CI/CD Pipeline
22
33on :
4- push :
5- branches : [main]
6- paths-ignore :
7- - " docs/**"
8- - " **.md"
9- - " .github/ISSUE_TEMPLATE/**"
10- - " .claude/**"
114 pull_request :
125 branches : [main]
136 paths-ignore :
@@ -24,6 +17,7 @@ concurrency:
2417
2518jobs :
2619 build-and-test :
20+ if : github.event_name == 'pull_request'
2721 runs-on : ubuntu-latest
2822 permissions :
2923 contents : read
@@ -36,22 +30,15 @@ jobs:
3630 with :
3731 dotnet-version : 9.x
3832
39- - name : Restore dependencies
40- run : dotnet restore
41-
4233 - name : Check formatting
4334 run : |
4435 dotnet tool restore
4536 dotnet csharpier check .
4637
47- - name : Build
48- run : dotnet build --no-restore --configuration Release
49-
5038 - name : Test
51- run : dotnet test --no-build -- configuration Release --verbosity normal
39+ run : dotnet test --configuration Release --verbosity normal
5240
5341 publish :
54- needs : build-and-test
5542 if : github.event_name == 'release'
5643 runs-on : ubuntu-latest
5744 permissions :
7259 - name : Build and Pack
7360 run : |
7461 VERSION="${{ github.event.release.tag_name }}"
75- # Remove v prefix if present
7662 [[ "$VERSION" =~ ^v ]] && VERSION="${VERSION:1}"
7763 dotnet pack JsonApiToolkit/JsonApiToolkit.csproj -p:PackageVersion=$VERSION -c Release
7864
You can’t perform that action at this time.
0 commit comments