Skip to content

Commit 48ff75b

Browse files
separated the main and PR yaml
1 parent 966f8b1 commit 48ff75b

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: .NET
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
name: Build and test
12+
runs-on: ubuntu-latest
13+
env:
14+
NUGET_KEY: ${{ secrets.NUGET_KEY }}
15+
CONFIGURATION: Release
16+
PACKAGES_DIRECTORY: ./packages
17+
NUGET_SOURCE: https://api.nuget.org/v3/index.json
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v2
24+
with:
25+
dotnet-version: 6.0.x
26+
27+
- name: Restore dependencies
28+
run: dotnet restore ./src/OneBitSoftware.Utilities.OperationResult.sln
29+
30+
- name: Build
31+
run: dotnet build ./src/OneBitSoftware.Utilities.OperationResult.sln --no-restore --configuration "${{ env.CONFIGURATION }}"
32+
33+
- name: Test
34+
run: dotnet test ./src/OneBitSoftware.Utilities.OperationResult.sln --no-build --verbosity normal

0 commit comments

Comments
 (0)