Skip to content

Commit

Permalink
Create dotnet.yml
Browse files Browse the repository at this point in the history
Created workflow for unit and integration testing during work with master branch
  • Loading branch information
AMSaiian authored Sep 15, 2024
1 parent 249d135 commit d6c86a0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI For MyCutePet

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build-and-test-remote:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Restore dependencies
run: dotnet restore backend/Task.io.sln

- name: Build Solution
run: dotnet build backend/Task.io.sln --configuration Release --no-restore

- name: Run Unit and Integration tests
run: dotnet test backend/Task.io.sln --no-build --verbosity normal

0 comments on commit d6c86a0

Please sign in to comment.