-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (32 loc) · 966 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
36
37
38
39
40
name: CI
on:
pull_request:
branches: [ main, develop ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3.3.0
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: 7.0.x
- name: App Settings Variable Substitution
uses: microsoft/variable-substitution@v1
with:
files: './API/src/TibiaStalker.Api/appsettings.json'
env:
Serilog.WriteTo.2.Args.serverUrl: http://localhost:5341
Serilog.WriteTo.2.Args.apiKey: xxxxxx
RabbitMq.username: guest
RabbitMq.password: guest
RabbitMq.port: 5672
RabbitMq.hostUrl: amqp://localhost
- name: Restore NuGet Packages
run: dotnet restore
- name: Run Build
run: dotnet build --no-restore
# - name: Run Tests
# run: dotnet test --no-build