Skip to content

Commit 6bdc5ab

Browse files
committed
chore: Migrate from CircleCI to GitHub Actions
1 parent fec9b2c commit 6bdc5ab

File tree

3 files changed

+60
-79
lines changed

3 files changed

+60
-79
lines changed

.circleci/config.yml

-78
This file was deleted.

.github/workflows/ci.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Quality control
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-test:
14+
strategy:
15+
matrix:
16+
include:
17+
- os: ubuntu-latest
18+
version: 3.1
19+
build-frameworks: netcoreapp3.1
20+
test-framework: netcoreapp3.1
21+
- os: ubuntu-latest
22+
version: 6.0
23+
build-frameworks: net6.0
24+
test-framework: net6.0
25+
- os: windows-latest
26+
version: 4.6.2
27+
build-frameworks: net462
28+
test-framework: net462
29+
fail-fast: false
30+
31+
runs-on: ${{ matrix.os }}
32+
33+
env:
34+
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
35+
ASPNETCORE_SUPPRESSSTATUSMESSAGES: true
36+
BUILDFRAMEWORKS: ${{ matrix.build-frameworks }}
37+
TESTFRAMEWORK: ${{ matrix.test-framework }}
38+
39+
permissions:
40+
id-token: write
41+
contents: read
42+
43+
steps:
44+
- uses: actions/checkout@v4
45+
46+
- name: Setup dotnet build tools
47+
uses: actions/setup-dotnet@v4
48+
with:
49+
dotnet-version: ${{ matrix.version }}
50+
51+
- name: Restore Dependencies
52+
run: dotnet restore
53+
54+
- name: Build
55+
shell: bash
56+
run: dotnet build
57+
58+
- name: Run Unit Tests
59+
run: dotnet test

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# LaunchDarkly .NET Test Helpers
22

33
[![NuGet](https://img.shields.io/nuget/v/LaunchDarkly.TestHelpers.svg?style=flat-square)](https://www.nuget.org/packages/LaunchDarkly.TestHelpers/)
4-
[![CircleCI](https://circleci.com/gh/launchdarkly/dotnet-test-helpers.svg?style=shield)](https://circleci.com/gh/launchdarkly/dotnet-test-helpers)
4+
[![Quality control](https://github.com/launchdarkly/dotnet-test-helpers/actions/workflows/ci.yml/badge.svg)](https://github.com/launchdarkly/dotnet-test-helpers/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-test-helpers)
66

77
This project centralizes some test support code that is used by LaunchDarkly's .NET and Xamarin SDKs and related components, and that may be useful in other .NET projects.

0 commit comments

Comments
 (0)