-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (43 loc) · 1.49 KB
/
verification.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: verification
on:
push:
branches:
- main
paths:
- 'src/**'
- 'test/**'
- 'sample/**'
pull_request:
types:
- opened
- synchronize
- reopened
workflow_dispatch:
jobs:
verify:
name: 👌 Verify libraries
runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: ⚙️ Setup GIT versioning
uses: dotnet/nbgv@v0.4.0
with:
setAllVars: true
- name: ⚙️ Setup dotnet 7.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
- name: 🛠️ Building libraries in release mode
run: dotnet build -c release -p:ContinuousIntegrationBuild=true
- name: 🧪 Run unit tests
run: |
dotnet test ./test/Atc.Cosmos.EventStore.Tests/Atc.Cosmos.EventStore.Tests.csproj -c release --logger GitHubActions
dotnet test ./test/Atc.Cosmos.EventStore.Cqrs.Tests/Atc.Cosmos.EventStore.Cqrs.Tests.csproj -c release --logger GitHubActions
- name: 🗳️ Pack libraries
run: |
dotnet pack -c release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true
dotnet pack src/Atc.Cosmos.EventStore/ -c release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true
dotnet pack src/Atc.Cosmos.EventStore.Cqrs/ -c release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true