-
-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (33 loc) · 1.14 KB
/
build-test-publish.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
36
37
name: build-test-publish
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install PosgtreSQL
uses: vb-consulting/postgresql-action@v1
with:
postgresql version: '11' # See https://hub.docker.com/_/postgres for available versions
postgresql user: 'norm_postgresql_unit_tests_user'
postgresql password: 'norm_postgresql_unit_password'
- name: Install SQL Server
uses: vb-consulting/[email protected]
with:
accept eula: Y #Required, ACCEPT_EULA confirms your acceptance of the End-User Licensing Agreement.
- uses: actions/checkout@v2
- name: Setup .NET7
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity m
- name: Publish
run: dotnet nuget push **\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate