Renovate Bot
12acc3364d
All checks were successful
continuous-integration/drone/push Build is passing
28 lines
823 B
YAML
28 lines
823 B
YAML
name: ASP.NET Core Build & Tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
working-directory: ./src
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Launch Db for testing
|
|
run: docker run --name postgres -e POSTGRES_DB=mytestdb -e POSTGRES_PASSWORD=mysecretpassword -d -p 5432:5432 postgres
|
|
- name: Setup .NET Core
|
|
uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: 3.1.101
|
|
- name: Install dependencies
|
|
run: dotnet restore
|
|
working-directory: ${{env.working-directory}}
|
|
- name: Build
|
|
run: dotnet build --configuration Release --no-restore
|
|
working-directory: ${{env.working-directory}}
|
|
- name: Test
|
|
run: dotnet test --no-restore --verbosity minimal
|
|
working-directory: ${{env.working-directory}}
|