File tree Expand file tree Collapse file tree 1 file changed +38
-6
lines changed
Expand file tree Collapse file tree 1 file changed +38
-6
lines changed Original file line number Diff line number Diff line change 1- # This workflow will build a .NET project
2- # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3-
4- name : .NET
1+ name : LogicAppUnit-Build
52
63on :
74 push :
85 branches :
96 - main
7+ - automated_build
8+ - ' features/**'
109 pull_request :
1110 branches :
1211 - main
1312 workflow_dispatch :
1413
1514jobs :
16- build :
1715
16+ build :
1817 runs-on : ubuntu-latest
1918
2019 steps :
2120 - name : Checkout
2221 uses : actions/checkout@v3
2322
23+ # Build .NET solution
24+
2425 - name : Setup .NET
2526 uses : actions/setup-dotnet@v3
2627 with :
2728 dotnet-version : 6.0.x
28-
29+
2930 - name : Restore dependencies
3031 run : dotnet restore
3132
3233 - name : Build
3334 run : dotnet build --no-restore
35+
36+ # Install and configure Logic Apps runtime environment
37+
38+ - name : Setup node
39+ uses : actions/setup-node@v3
40+ with :
41+ node-version : 18
42+
43+ - name : Install Functions Core tools
44+ run : ' npm install -g azure-functions-core-tools@4 --unsafe-perm true'
45+
46+ - name : Check Functions Core tools installation
47+ run : ' func'
48+
49+ - name : Install Azurite
50+ run : ' npm install -g azurite@3.24.0'
51+
52+ - name : Start Azurite services
53+ run : ' azurite &'
54+
55+ # Run tests
56+
57+ - name : Run tests
58+ run : dotnet test --no-restore --verbosity normal --logger "TRX"
59+
60+ # Publish artefacts
61+ - name : Publish test results
62+ uses : actions/upload-artifact@v3
63+ with :
64+ name : test-results
65+ path : ${{ github.workspace }}/LogicAppUnit.Samples.LogicApps.Tests/TestResults/**.trx
You can’t perform that action at this time.
0 commit comments