Skip to content

Commit

Permalink
feat: add dotnet-build
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosCostaDev committed Aug 5, 2023
1 parent 4f0d638 commit 29f7f04
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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:
push:
branches: [ "feature/build-deploy" ]
pull_request:
branches: [ "main" ]
env:
WORK_DIR: ./src
SOLUTION: ${{ env.WORK_DIR }}/RinhaBackEnd.sln
TEST_PROJECT: ${{ env.WORK_DIR }}/RinhaBackEnd.Test/RinhaBackEnd.Test.csproj

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore ${{ env.SOLUTION }}
- name: Build
run: dotnet build ${{ env.SOLUTION }} --no-restore
- name: Test
run: dotnet test ${{ env.SOLUTION }} --filter 'Integration!=ignore&Integration!=Benchmark' --no-build --verbosity normal

0 comments on commit 29f7f04

Please sign in to comment.