Skip to content

Commit fcc9c6b

Browse files
Merge pull request #105 from StuartFerguson/task/#103_projectionsintests
Task/#103 projectionsintests
2 parents 9b1f474 + b4dce5f commit fcc9c6b

File tree

5 files changed

+14
-36
lines changed

5 files changed

+14
-36
lines changed

.github/workflows/createrelease.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v2.3.4
1717

1818
- name: Get the version
1919
id: get_version
2020
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
2121

22-
- name: Setup .NET Core
23-
uses: actions/setup-dotnet@v1
24-
with:
25-
dotnet-version: 3.1.100
26-
2722
- name: Restore Nuget Packages
2823
run: dotnet restore TransactionProcessor.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
2924

@@ -78,15 +73,15 @@ jobs:
7873
7974
- name: Get Release
8075
id: getrelease
81-
uses: octokit/request-action@v1.x
76+
uses: octokit/request-action@v2.0.17
8277
with:
8378
route: GET /repos/StuartFerguson/TransactionProcessor/releases/tags/${{ steps.get_version.outputs.VERSION }}
8479
env:
8580
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8681

8782
- name: Build Release Notes
8883
id: buildreleasenotes
89-
uses: gr2m/get-json-paths-action@v1.x
84+
uses: gr2m/get-json-paths-action@v1.0.4
9085
with:
9186
json: ${{ steps.getrelease.outputs.data }}
9287
releasenote: "body"

.github/workflows/nightlybuild.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v1
18-
19-
- name: Setup .NET Core
20-
uses: actions/setup-dotnet@v1
21-
with:
22-
dotnet-version: 3.1.100
17+
- uses: actions/checkout@v2.3.4
2318

2419
- name: Restore Nuget Packages
2520
run: dotnet restore TransactionProcessor.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
@@ -35,7 +30,7 @@ jobs:
3530
dotnet test "TransactionProcessor.TransactionAggregate.Tests\TransactionProcessor.TransactionAggregate.Tests.csproj" /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov3.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov"
3631
3732
- name: Setup Node.js for use with actions
38-
uses: actions/setup-node@v1.1.0
33+
uses: actions/setup-node@v1.4.4
3934

4035
- name: Combine Coverage
4136
run: |

.github/workflows/prereleasenuget.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,23 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v1
19-
20-
- name: Setup .NET Core
21-
uses: actions/setup-dotnet@v1
18+
- uses: actions/checkout@v2.3.4
2219
with:
23-
dotnet-version: 3.1.100
20+
fetch-depth: 0
2421

2522
- name: Restore Nuget Packages
2623
run: dotnet restore TransactionProcessor.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
2724

2825
- name: Build Code
2926
run: dotnet build TransactionProcessor.sln --configuration Release
3027

31-
- name: Get the last version
32-
id: get_version
33-
run: echo ::set-output name=VERSION::$(git tag --sort=committerdate | tail -1)
34-
28+
- name: 'Get Previous tag'
29+
id: previoustag
30+
uses: "WyriHaximus/github-action-get-previous-tag@1.0.0"
31+
3532
- name: Print Version
3633
id: next_version
37-
run: echo ::set-output name=VERSION::${{ steps.get_version.outputs.VERSION }}-build$GITHUB_RUN_NUMBER
34+
run: echo ::set-output name=VERSION::${{ steps.previoustag.outputs.tag }}-build$GITHUB_RUN_NUMBER
3835

3936
- name: Build and Publish Nuget Packages
4037
run: |

.github/workflows/pullrequest.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v1
18-
19-
- name: Setup .NET Core
20-
uses: actions/setup-dotnet@v1
21-
with:
22-
dotnet-version: 3.1.100
17+
- uses: actions/checkout@v2.3.4
2318

2419
- name: Restore Nuget Packages
2520
run: dotnet restore TransactionProcessor.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
@@ -39,7 +34,3 @@ jobs:
3934

4035
- name: Run Integration Tests
4136
run: dotnet test "TransactionProcessor.IntegrationTests\TransactionProcessor.IntegrationTests.csproj" --filter Category=PRTest
42-
43-
- name: Setup tmate session
44-
if: failure()
45-
uses: mxschmitt/action-tmate@v1

.github/workflows/release-management.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
# Drafts your next Release notes as Pull Requests are merged into "master"
14-
- uses: toolmantim/release-drafter@v5.2.0
14+
- uses: toolmantim/release-drafter@v5.12.1
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)