Skip to content

Commit

Permalink
separate workflows for build and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drittich committed Dec 2, 2023
1 parent da31d07 commit 5bc9219
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET Core CI
name: .NET Core CI - Build

on:
push:
Expand All @@ -24,6 +24,3 @@ jobs:

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test --no-restore --verbosity normal
26 changes: 26 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: .NET Core CI - Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Install dependencies
run: dotnet restore

- name: Test
run: dotnet test --no-restore --verbosity normal

0 comments on commit 5bc9219

Please sign in to comment.