Skip to content

Commit aeb9467

Browse files
authored
Created new CI and Release workflows. (#350)
1 parent 7d82123 commit aeb9467

File tree

8 files changed

+72
-167
lines changed

8 files changed

+72
-167
lines changed

.github/workflows/build-test-ef6.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/build-test.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Test
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- 'Specification/**'
10+
- 'Specification.EntityFrameworkCore/**'
11+
- 'Specification.EntityFramework6/**'
12+
pull_request:
13+
branches:
14+
- main
15+
paths:
16+
- 'Specification/**'
17+
- 'Specification.EntityFrameworkCore/**'
18+
- 'Specification.EntityFramework6/**'
19+
20+
jobs:
21+
build:
22+
runs-on: windows-latest
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v3
27+
- name: Setup dotnet
28+
uses: actions/setup-dotnet@v3
29+
with:
30+
dotnet-version: 7.0.x
31+
- name: Build
32+
run: dotnet build ci.slnf --configuration Release
33+
- name: Test
34+
run: dotnet test ci.slnf --configuration Release --no-build --no-restore

.github/workflows/publish.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/publishef6.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/publishefcore.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release to Nuget
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: windows-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
- name: Setup dotnet
15+
uses: actions/setup-dotnet@v3
16+
with:
17+
dotnet-version: 7.0.x
18+
- name: Build
19+
run: dotnet build ci.slnf --configuration Release
20+
- name: Test
21+
run: dotnet test ci.slnf --configuration Release --no-build --no-restore
22+
- name: Pack
23+
run: dotnet pack ci.slnf --configuration Release --no-build --no-restore --output .
24+
- name: Push to NuGet
25+
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json

ci.slnf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"solution": {
3+
"path": "Ardalis.Specification.sln",
4+
"projects": [
5+
"Specification.EntityFramework6\\src\\Ardalis.Specification.EntityFramework6\\Ardalis.Specification.EntityFramework6.csproj",
6+
"Specification.EntityFramework6\\tests\\Ardalis.Specification.EntityFramework6.IntegrationTests\\Ardalis.Specification.EntityFramework6.IntegrationTests.csproj",
7+
"Specification.EntityFrameworkCore\\src\\Ardalis.Specification.EntityFrameworkCore\\Ardalis.Specification.EntityFrameworkCore.csproj",
8+
"Specification.EntityFrameworkCore\\tests\\Ardalis.Specification.EntityFrameworkCore.IntegrationTests\\Ardalis.Specification.EntityFrameworkCore.IntegrationTests.csproj",
9+
"Specification\\src\\Ardalis.Specification\\Ardalis.Specification.csproj",
10+
"Specification\\tests\\Ardalis.Specification.UnitTests\\Ardalis.Specification.UnitTests.csproj"
11+
]
12+
}
13+
}

0 commit comments

Comments
 (0)