Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 3a5c660

Browse files
authored
chore: Migrate CI to github actions. (#30)
1 parent 708da99 commit 3a5c660

File tree

4 files changed

+66
-40
lines changed

4 files changed

+66
-40
lines changed

.circleci/config.yml

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

.github/workflows/ci.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main, 'feat/**' ]
6+
paths-ignore:
7+
- '**.md' # Do not need to run CI for markdown changes.
8+
pull_request:
9+
branches: [ main, 'feat/**' ]
10+
paths-ignore:
11+
- '**.md'
12+
13+
jobs:
14+
linux:
15+
runs-on: ubuntu-latest
16+
17+
services:
18+
redis:
19+
image: redis
20+
ports:
21+
- 6379:6379
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: Setup dotnet build tools
27+
uses: actions/setup-dotnet@v4
28+
with:
29+
dotnet-version: 8.0
30+
31+
- run: dotnet restore
32+
- run: dotnet build src/LaunchDarkly.ServerSdk.Redis -f netstandard2.0
33+
- run: dotnet test test/LaunchDarkly.ServerSdk.Redis.Tests -f net8.0
34+
35+
windows:
36+
runs-on: windows-latest
37+
38+
defaults:
39+
run:
40+
shell: powershell
41+
42+
steps:
43+
- uses: actions/checkout@v4
44+
45+
- name: Setup dotnet build tools
46+
uses: actions/setup-dotnet@v4
47+
with:
48+
dotnet-version: 8.0
49+
50+
- name: Setup Redis
51+
run: |
52+
$ProgressPreference = "SilentlyContinue"
53+
iwr -outf redis.zip https://github.com/MicrosoftArchive/redis/releases/download/win-3.0.504/Redis-x64-3.0.504.zip
54+
mkdir redis
55+
Expand-Archive -Path redis.zip -DestinationPath redis
56+
cd redis
57+
./redis-server --service-install
58+
./redis-server --service-start
59+
Start-Sleep -s 5
60+
./redis-cli ping
61+
62+
- run: dotnet restore
63+
- run: dotnet build src/LaunchDarkly.ServerSdk.Redis -f net462
64+
- run: dotnet test test/LaunchDarkly.ServerSdk.Redis.Tests -f net462

dotnet-server-sdk-shared-tests/LaunchDarkly.ServerSdk.SharedTests.Tests/LaunchDarkly.ServerSdk.SharedTests.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
3+
<TargetFrameworks>net8.0</TargetFrameworks>
44
<IsPackable>false</IsPackable>
55
<RootNamespace>LaunchDarkly.Sdk.Server.SharedTests</RootNamespace>
66
</PropertyGroup>

test/LaunchDarkly.ServerSdk.Redis.Tests/LaunchDarkly.ServerSdk.Redis.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>netcoreapp3.1;net462</TargetFrameworks>
3+
<TargetFrameworks>net8.0;net462</TargetFrameworks>
44
<IsPackable>false</IsPackable>
55
<IsTestProject>true</IsTestProject>
66
<RootNamespace>LaunchDarkly.Sdk.Server.Integrations</RootNamespace>

0 commit comments

Comments
 (0)