File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test example project
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v3
14+ - name : Setup .NET
15+ uses : actions/setup-dotnet@v3
16+ with :
17+ dotnet-version : 8.0.x
18+ - name : Create new packages
19+ run : dotnet pack
20+ - name : Restore dependencies
21+ working-directory : ./example
22+ run : dotnet restore
23+ - name : Restore tool
24+ working-directory : ./example
25+ run : dotnet tool restore
26+ - name : Build with dotnet
27+ working-directory : ./example
28+ run : dotnet build --no-restore
29+ - name : Test with dotnet
30+ working-directory : ./example
31+ run : dotnet test --no-build --logger trx --results-directory "TestResults"
32+ - name : Upload dotnet test results
33+ if : ${{ always() }}
34+ uses : actions/upload-artifact@v4
35+ with :
36+ name : dotnet-test-results
37+ path : ./example/TestResults
38+ - name : Compile policies
39+ working-directory : ./example
40+ run : dotnet azure-apim-policy-compiler --s ./source/ --o ./target/ --format true
You can’t perform that action at this time.
0 commit comments