Skip to content

Commit 0a75f97

Browse files
Create dotnetcore.yml (#51)
* Create dotnetcore.yml * Update .github/workflows/dotnetcore.yml * Update .github/workflows/dotnetcore.yml * Update .github/workflows/dotnetcore.yml * Update .github/workflows/dotnetcore.yml * Deleted appveyor * Fixed linux build * Build on ubuntu
1 parent 25dd457 commit 0a75f97

3 files changed

Lines changed: 26 additions & 20 deletions

File tree

.github/workflows/dotnetcore.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: .NET Core
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Setup .NET Core
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: 3.1.101
20+
- name: Build with dotnet
21+
run: dotnet build --configuration Release
22+
23+
- name: Run tests
24+
run: dotnet test --configuration Release --no-build

EntityFrameworkCore.Extensions.Tests/MigrationBuilderExtensionsTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Microsoft.EntityFrameworkCore.Migrations;
22
using Microsoft.EntityFrameworkCore.Migrations.Operations;
3+
using System.IO;
34
using Xunit;
45

56
namespace EntityFrameworkCore.Extensions.Tests
@@ -11,7 +12,7 @@ public void SqlFile_should_include_sql_in_migration()
1112
{
1213
var migrationBuilder = new MigrationBuilder("");
1314

14-
migrationBuilder.SqlFile("CustomSql\\TestSql.sql");
15+
migrationBuilder.SqlFile(Path.Combine("CustomSql", "TestSql.sql"));
1516

1617
Assert.Single(migrationBuilder.Operations);
1718
Assert.IsType<SqlOperation>(migrationBuilder.Operations[0]);

appveyor.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)