-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 884 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on:
workflow_dispatch: # Allow running the workflow manually from the GitHub UI
pull_request:
branches:
- '*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
BUILD_CONFIG: 'Release'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: "Install dotnet-ef"
run: dotnet tool install --global dotnet-ef
- name: "Re-scaffold integration test migrations"
shell: pwsh
run: .\tests\EFCore.ChangeTriggers.SqlServer.Tests.Integration\readd-all-migrations.ps1
- name: Build solution
run: dotnet build --configuration $BUILD_CONFIG
- name: Run tests
run: dotnet test --configuration $BUILD_CONFIG --no-build