Skip to content

Commit 905b17e

Browse files
feat: this commit introduces a new pipeline to validate pull requests for the contracts project
1 parent 550c978 commit 905b17e

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: omanda.internal.contracts pull request validation
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
paths:
7+
- 'Artifacts/Comanda.Internal.Contracts/**'
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
defaults:
14+
run:
15+
working-directory: Artifacts/Comanda.Internal.Contracts
16+
17+
steps:
18+
- name: checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: setup .NET
22+
uses: actions/setup-dotnet@v4
23+
with:
24+
dotnet-version: '9.0.x'
25+
26+
- name: restore dependencies
27+
run: dotnet restore
28+
29+
- name: build
30+
run: dotnet build --no-restore --configuration Release
31+
32+
- name: run tests
33+
run: dotnet test --no-build --configuration Release --verbosity normal

0 commit comments

Comments
 (0)