Skip to content

Commit f9aeeac

Browse files
authored
Updated build pipeline.
1 parent f495f06 commit f9aeeac

File tree

1 file changed

+38
-6
lines changed

1 file changed

+38
-6
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,65 @@
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

63
on:
74
push:
85
branches:
96
- main
7+
- automated_build
8+
- 'features/**'
109
pull_request:
1110
branches:
1211
- main
1312
workflow_dispatch:
1413

1514
jobs:
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

0 commit comments

Comments
 (0)