name: .NET Core

on:
  push:
    branches: [ master ]
  workflow_dispatch:
  
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Setup .NET Core
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: 3.1.301
    - name: Install dependencies
      run: dotnet restore DotCEP
    - name: Build
      run: dotnet build DotCEP --configuration Release --no-restore
    - name: Test
      run: dotnet test DotCEP --no-restore --verbosity normal

name: .NET Core

on:
  push:
    branches: [ master ]
  workflow_dispatch:
  
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Setup .NET Core
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: 3.1.301
    - name: Install dependencies
      run: dotnet restore DotCEP
    - name: Build
      run: dotnet build DotCEP --configuration Release --no-restore
    - name: Preparar testes
      run: cp DB/Lugares.db DotCEP/DotCEP.Tests/bin/Release/netcoreapp3.1/
    - name: Test
      run: dotnet test DotCEP --configuration Release --no-restore --verbosity normal
    - name: Pack
      run: dotnet pack

Move o banco para a paste na hora do teste
Move o banco para a paste na hora do teste
