-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (42 loc) · 1.21 KB
/
server-sdk-consul-ci.yml
File metadata and controls
49 lines (42 loc) · 1.21 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
48
49
name: LaunchDarkly.ServerSdk.Consul CI
on:
push:
branches: [ main, 'feat/**' ]
paths:
- '.github/**'
- 'global.example.json'
- 'pkgs/dotnet-server-sdk-consul/**'
- '!**.md'
pull_request:
branches: [ main, 'feat/**' ]
paths:
- '.github/**'
- 'global.example.json'
- 'pkgs/dotnet-server-sdk-consul/**'
- '!**.md'
jobs:
build-and-test:
strategy:
matrix:
include:
- os: ubuntu-latest
framework: netstandard2.0
test_framework: net8.0
- os: windows-latest
framework: net462
test_framework: net462
runs-on: ${{ matrix.os }}
defaults:
run:
shell: ${{ matrix.os == 'windows-latest' && 'powershell' || 'bash' }}
steps:
- uses: actions/checkout@v4
- name: Setup Env from project's Env file
shell: bash
run: echo "$(cat pkgs/dotnet-server-sdk-consul/github_actions.env)" >> $GITHUB_ENV
- uses: ./.github/actions/ci
with:
project_file: ${{ env.PROJECT_FILE }}
test_project_file: ${{ env.TEST_PROJECT_FILE }}
target_test_framework: ${{ matrix.test_framework }}
run_consul: true