-
Notifications
You must be signed in to change notification settings - Fork 16
45 lines (37 loc) · 1.15 KB
/
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
41
42
43
44
45
name: Build and run
on:
push:
branches: [ main, 'feat/**' ]
paths-ignore:
- '**.md' # Do not need to run CI for markdown changes.
pull_request:
branches: [ main, 'feat/**' ]
paths-ignore:
- '**.md'
jobs:
build-and-run:
strategy:
matrix:
target:
- os: windows-latest
build-framework: net462
test-target-framework: net462
- os: ubuntu-latest
build-framework: net8.0
test-target-framework: net8.0
fail-fast: false
runs-on: ${{ matrix.target.os }}
permissions:
id-token: write # Needed if using OIDC to get release secrets.
env:
TESTFRAMEWORKS: ${{ matrix.target.test-target-framework }}
BUILDFRAMEWORKS: ${{ matrix.target.build-framework }}
steps:
- uses: actions/checkout@v4
- name: Setup dotnet build tools
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0
- run: dotnet restore
- run: dotnet build src/LaunchDarkly.EventSource/LaunchDarkly.EventSource.csproj
- run: dotnet test test/LaunchDarkly.EventSource.Tests/LaunchDarkly.EventSource.Tests.csproj