-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (33 loc) · 1.31 KB
/
BuildAndTestOnEveryPush.yml
File metadata and controls
47 lines (33 loc) · 1.31 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
name: BuildAndTestOnEveryPush.yml
on:
push:
branches-ignore:
- master
jobs:
UbuntuBuild:
name: Build on ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: build docker container
run: docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Salakala123!" -p 1433:1433 --name sql1 --hostname sql1 -d mcr.microsoft.com/mssql/server:2019-CU18-ubuntu-20.04
- name: Build
run: dotnet build
- name: Run SaveQueryToCsvTests
run: dotnet test --filter Frends.Community.SQL.Tests.SaveQueryToCSVTests
- name: Run TestBulkInsert
run: dotnet test --filter Frends.Community.SQL.Tests.TestBulkInsert
WindowsBuild:
needs: UbuntuBuild
name: Build on windows-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Build
run: dotnet build
- name: Test
run: dotnet test --filter Frends.Community.SQL.Tests.SQLTest
- name: Pack release version of task
run: dotnet pack --configuration Release --include-source
- name: Push NuGet package to the testfeed
run: dotnet nuget push Frends.Community.SQL\bin\Release\Frends.Community.SQL.*.nupkg --api-key ${{ secrets.COMMUNITY_FEED_API_KEY }} --source https://www.myget.org/F/frends-community-test/api/v2/package