Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ledrunning authored Dec 24, 2023
1 parent b3649cc commit 92961d7
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,17 @@
name: .NET CI
version: 1.0.{build}

on:
push:
branches:
- main
branches:
only:
- main

jobs:
build:
runs-on: ubuntu-latest
image:
- Visual Studio 2019

steps:
- name: Checkout repository
uses: actions/checkout@v2
configuration: Release

- name: Set up .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
build_script:
- ps: nuget restore CrudBot.sln
- msbuild CrudBot.sln /p:Configuration=Release

- name: Restore dependencies
run: dotnet restore CrudBot.Main/CrudBot.Main.csproj

- name: Build
run: dotnet build --configuration Release CrudBot.Main/CrudBot.Main.csproj

- name: Test
run: dotnet test --configuration Release --no-build CrudBot.Main/CrudBot.Main.csproj
test_script:
- dotnet test CrudBot.Main/CrudBot.Main.csproj --configuration Release

0 comments on commit 92961d7

Please sign in to comment.