Skip to content

Commit 45e2e83

Browse files
authored
Add Common package project (#147)
* Add Common package project - Removed all existing projects that are no longer maintained - Add new package containing useful constants and extensions commonly used for Azure Functions app development * Update GHA workflows
1 parent 57e4101 commit 45e2e83

File tree

366 files changed

+766
-21598
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

366 files changed

+766
-21598
lines changed

.github/workflows/build.yaml

Lines changed: 46 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,46 @@
1-
# name: Build and Test
2-
3-
# on:
4-
# push:
5-
# branches:
6-
# - master
7-
# - dev
8-
# - v3
9-
# - feature/*
10-
11-
# jobs:
12-
# build_and_test:
13-
# name: Build and test
14-
# strategy:
15-
# matrix:
16-
# os: [ 'windows-latest' ]
17-
18-
# runs-on: ${{ matrix.os }}
19-
20-
# steps:
21-
# - name: Checkout the repository
22-
# uses: actions/checkout@v2
23-
24-
# - name: Setup .NET SDK 2.1 LTS
25-
# uses: actions/setup-dotnet@v1
26-
# with:
27-
# dotnet-version: '2.1.x'
28-
29-
# - name: Setup .NET SDK 3.1 LTS
30-
# uses: actions/setup-dotnet@v1
31-
# with:
32-
# dotnet-version: '3.1.x'
33-
34-
# # - name: Setup .NET SDK 5
35-
# # uses: actions/setup-dotnet@v1
36-
# # with:
37-
# # dotnet-version: '5.x'
38-
39-
# - name: Add MSBuild to PATH
40-
# uses: microsoft/[email protected]
41-
42-
# - name: Restore NuGet packages
43-
# shell: pwsh
44-
# run: |
45-
# dir
46-
# dotnet restore .
47-
48-
# - name: Build solution
49-
# shell: pwsh
50-
# run: |
51-
# dir
52-
# dotnet build . -c Debug -v minimal
53-
54-
# - name: Test solution
55-
# shell: pwsh
56-
# run: |
57-
# dir
58-
# dotnet test . -c Debug
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- feature/*
8+
9+
jobs:
10+
build_and_test:
11+
name: Build and test
12+
strategy:
13+
matrix:
14+
os: [ 'windows-latest', 'ubuntu-latest', 'macos-latest' ]
15+
16+
runs-on: ${{ matrix.os }}
17+
18+
steps:
19+
- name: Checkout the repository
20+
uses: actions/checkout@v2
21+
22+
- name: Setup .NET SDK 6
23+
uses: actions/setup-dotnet@v1
24+
with:
25+
dotnet-version: '6.x'
26+
27+
# - name: Add MSBuild to PATH
28+
# uses: microsoft/[email protected]
29+
30+
- name: Restore NuGet packages
31+
shell: pwsh
32+
run: |
33+
dir
34+
dotnet restore .
35+
36+
- name: Build solution
37+
shell: pwsh
38+
run: |
39+
dir
40+
dotnet build . -c Debug -v minimal
41+
42+
- name: Test solution
43+
shell: pwsh
44+
run: |
45+
dir
46+
dotnet test . -c Debug

.github/workflows/pr.yaml

Lines changed: 45 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,45 @@
1-
# name: Pull Request
2-
3-
# on:
4-
# pull_request:
5-
# branches:
6-
# - dev
7-
8-
# jobs:
9-
# build_and_test:
10-
# name: Build and test
11-
# strategy:
12-
# matrix:
13-
# os: [ 'windows-latest' ]
14-
15-
# runs-on: ${{ matrix.os }}
16-
17-
# steps:
18-
# - name: Checkout the repository
19-
# uses: actions/checkout@v2
20-
21-
# - name: Setup .NET SDK 2.1 LTS
22-
# uses: actions/setup-dotnet@v1
23-
# with:
24-
# dotnet-version: '2.1.x'
25-
26-
# - name: Setup .NET SDK 3.1 LTS
27-
# uses: actions/setup-dotnet@v1
28-
# with:
29-
# dotnet-version: '3.1.x'
30-
31-
# # - name: Setup .NET SDK 5
32-
# # uses: actions/setup-dotnet@v1
33-
# # with:
34-
# # dotnet-version: '5.x'
35-
36-
# - name: Add MSBuild to PATH
37-
# uses: microsoft/[email protected]
38-
39-
# - name: Restore NuGet packages
40-
# shell: pwsh
41-
# run: |
42-
# dir
43-
# dotnet restore .
44-
45-
# - name: Build solution
46-
# shell: pwsh
47-
# run: |
48-
# dir
49-
# dotnet build . -c Debug -v minimal
50-
51-
# - name: Test solution
52-
# shell: pwsh
53-
# run: |
54-
# dir
55-
# dotnet test . -c Debug
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build_and_test:
10+
name: Build and test
11+
strategy:
12+
matrix:
13+
os: [ 'windows-latest', 'ubuntu-latest', 'macos-latest' ]
14+
15+
runs-on: ${{ matrix.os }}
16+
17+
steps:
18+
- name: Checkout the repository
19+
uses: actions/checkout@v2
20+
21+
- name: Setup .NET SDK 6
22+
uses: actions/setup-dotnet@v1
23+
with:
24+
dotnet-version: '6.x'
25+
26+
# - name: Add MSBuild to PATH
27+
# uses: microsoft/[email protected]
28+
29+
- name: Restore NuGet packages
30+
shell: pwsh
31+
run: |
32+
dir
33+
dotnet restore .
34+
35+
- name: Build solution
36+
shell: pwsh
37+
run: |
38+
dir
39+
dotnet build . -c Debug -v minimal
40+
41+
- name: Test solution
42+
shell: pwsh
43+
run: |
44+
dir
45+
dotnet test . -c Debug

0 commit comments

Comments
 (0)