Skip to content

Commit

Permalink
fixed run command
Browse files Browse the repository at this point in the history
  • Loading branch information
SydZero committed Oct 16, 2024
1 parent 0bd91cf commit c73b410
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET
name: .NET Build and Test

on:
push:
Expand All @@ -11,21 +8,27 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- with:
context: ./backend
- uses: actions/checkout@v3
# Check out the code from the repository
- name: Checkout repository
uses: actions/checkout@v3

# Set up .NET with version 6.0.x
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
context: ./backend
dotnet-version: 6.0.x

# Restore the dependencies of the .NET project
- name: Restore dependencies
run: dotnet restore
run: dotnet restore ./backend

# Build the project
- name: Build
run: dotnet build --no-restore
run: dotnet build ./backend --no-restore

# Run tests
- name: Test
run: dotnet test --no-build --verbosity normal
run: dotnet test ./backend --no-build --verbosity normal

0 comments on commit c73b410

Please sign in to comment.