Skip to content

add dotnet.yml

add dotnet.yml #61

Workflow file for this run

# 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
on:
pull_request:
branches: [ "main" ]
jobs:
welcome:
runs-on: ubuntu-latest
steps:
- run: echo "Welcome to the .NET world!"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
test:
- name: Test

Check failure on line 32 in .github/workflows/dotnet.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dotnet.yml

Invalid workflow file

You have an error in your yaml syntax on line 32
run: dotnet test --no-build --verbosity normal