Skip to content

Commit d90121f

Browse files
committed
chore: Migrate CI to github ations.
1 parent 42cd339 commit d90121f

File tree

6 files changed

+49
-95
lines changed

6 files changed

+49
-95
lines changed

.circleci/config.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build and run
2+
on:
3+
push:
4+
branches: [ main, 'feat/**' ]
5+
paths-ignore:
6+
- '**.md' # Do not need to run CI for markdown changes.
7+
pull_request:
8+
branches: [ main, 'feat/**' ]
9+
paths-ignore:
10+
- '**.md'
11+
12+
jobs:
13+
build-and-run:
14+
strategy:
15+
matrix:
16+
target:
17+
- os: windows-latest
18+
- os: ubuntu-latest
19+
fail-fast: false
20+
runs-on: ${{ matrix.target.os }}
21+
22+
permissions:
23+
id-token: write # Needed if using OIDC to get release secrets.
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Setup dotnet build tools
29+
uses: actions/setup-dotnet@v4
30+
with:
31+
dotnet-version: 8.0
32+
33+
- run: dotnet restore
34+
35+
- run: dotnet build src/LaunchDarkly.EventSource/LaunchDarkly.EventSource.csproj
36+
37+
- run: dotnet test test/LaunchDarkly.EventSource.Tests/LaunchDarkly.EventSource.Tests.csproj

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# LaunchDarkly EventSource SSE Client for .NET
22

33
[![NuGet](https://img.shields.io/nuget/v/LaunchDarkly.EventSource.svg?style=flat-square)](https://www.nuget.org/packages/LaunchDarkly.EventSource/)
4-
[![CircleCI](https://circleci.com/gh/launchdarkly/dotnet-eventsource.svg?style=shield)](https://circleci.com/gh/launchdarkly/dotnet-eventsource)
4+
[![Build and run](https://github.com/launchdarkly/dotnet-eventsource/actions/workflows/ci.yml/badge.svg)](https://github.com/launchdarkly/dotnet-eventsource/actions/workflows/ci.yml)
55
[![Documentation](https://img.shields.io/static/v1?label=GitHub+Pages&message=API+reference&color=00add8)](https://launchdarkly.github.io/dotnet-eventsource)
66

77
## Overview
@@ -37,7 +37,7 @@ Public key token is 18e8c36453e3060f
3737
We encourage pull requests and other contributions from the community. Check out our [contributing guidelines](CONTRIBUTING.md) for instructions on how to contribute to this project.
3838

3939
## About LaunchDarkly
40-
40+
4141
* LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard. With LaunchDarkly, you can:
4242
* Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.
4343
* Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).

src/LaunchDarkly.EventSource/LaunchDarkly.EventSource.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<Version>5.1.0</Version>
4-
<TargetFrameworks>netstandard2.0;net462</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0</TargetFrameworks>
5+
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462</TargetFrameworks>
56
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
67
<AssemblyName>LaunchDarkly.EventSource</AssemblyName>
78
<DebugType>portable</DebugType>
Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<!-- The TESTFRAMEWORK variable allows us to override the target frameworks with a
4-
single framework that we are testing; this allows us to test with older SDK
5-
versions that would error out if they saw any newer target frameworks listed
6-
here, even if we weren't running those. -->
7-
<TestFramework Condition="'$(TESTFRAMEWORK)' == ''">netcoreapp3.1;net462;net6.0</TestFramework>
8-
<TargetFrameworks>$(TESTFRAMEWORK)</TargetFrameworks>
3+
<TargetFrameworks>net8.0</TargetFrameworks>
4+
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462</TargetFrameworks>
95

106
<Copyright>Copyright © 2017 Catamorphic, Co.</Copyright>
117
</PropertyGroup>
128

139
<ItemGroup>
1410
<PackageReference Include="LaunchDarkly.TestHelpers" Version="2.0.0" />
15-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.0" />
16-
<PackageReference Include="xunit" Version="2.4.2" />
17-
<PackageReference Include="xunit.runner.console" Version="2.4.2" />
18-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
19-
<PackageReference Include="JunitXml.TestLogger" Version="3.0.114" />
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
12+
<PackageReference Include="xunit" Version="2.9.2" />
13+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
14+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
15+
<PrivateAssets>all</PrivateAssets>
16+
</PackageReference>
2017
</ItemGroup>
2118

2219
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' ">
@@ -28,10 +25,4 @@
2825
<ItemGroup>
2926
<ProjectReference Include="..\..\src\LaunchDarkly.EventSource\LaunchDarkly.EventSource.csproj" />
3027
</ItemGroup>
31-
32-
<ItemGroup>
33-
<None Update="xunit.runner.json">
34-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
35-
</None>
36-
</ItemGroup>
3728
</Project>

test/LaunchDarkly.EventSource.Tests/xunit.runner.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)