diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index f5029e1..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,78 +0,0 @@ -version: 2.1 - -orbs: - win: circleci/windows@1.0.0 - -workflows: - version: 2 - test: - jobs: - - test_linux: - name: .NET Core 3.1 - docker-image: mcr.microsoft.com/dotnet/core/sdk:3.1-focal - build-target-framework: netcoreapp3.1 - test-target-framework: netcoreapp3.1 - - test_linux: - name: .NET 6.0 - docker-image: mcr.microsoft.com/dotnet/sdk:6.0-focal - build-target-framework: net6.0 - test-target-framework: net6.0 - - test_windows: - name: .NET Framework 4.6.2 - build-target-framework: net462 - test-target-framework: net462 - -jobs: - test_linux: - parameters: - docker-image: - type: string - build-target-framework: - type: string - test-target-framework: - type: string - docker: - - image: <> - environment: - ASPNETCORE_SUPPRESSSTATUSMESSAGES: true - BUILDFRAMEWORKS: <> - TESTFRAMEWORK: <> - steps: - - checkout - - run: - name: build - command: dotnet build src/LaunchDarkly.TestHelpers - - run: - name: run tests - command: | - dotnet test \ - --logger:"junit;LogFilePath=/tmp/circle-reports/unit-tests.xml" \ - test/LaunchDarkly.TestHelpers.Tests/LaunchDarkly.TestHelpers.Tests.csproj - - store_test_results: - path: /tmp/circle-reports - - test_windows: - parameters: - build-target-framework: - type: string - test-target-framework: - type: string - executor: - name: win/vs2019 - shell: powershell.exe - environment: - BUILDFRAMEWORKS: <> - TESTFRAMEWORK: <> - steps: - - checkout - - run: - name: build - command: dotnet build src/LaunchDarkly.TestHelpers - - run: - name: run tests - command: | - dotnet test \ - -l "junit;LogFilePath=/tmp/circle-reports/unit-tests.xml" \ - test/LaunchDarkly.TestHelpers.Tests/LaunchDarkly.TestHelpers.Tests.csproj - - store_test_results: - path: /tmp/circle-reports diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ca7d0dd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,46 @@ +name: Quality control + +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: + linux: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup dotnet build tools + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 6.0 + + - run: dotnet restore + - run: dotnet build src/LaunchDarkly.TestHelpers -f netstandard2.0 + - run: dotnet test test/LaunchDarkly.TestHelpers.Tests -f net6.0 + + windows: + runs-on: windows-latest + + defaults: + run: + shell: powershell + + steps: + - uses: actions/checkout@v4 + + - name: Setup dotnet build tools + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 6.0 + + - run: dotnet restore + - run: dotnet build src/LaunchDarkly.TestHelpers -f net462 + - run: dotnet test test/LaunchDarkly.TestHelpers.Tests -f net462 diff --git a/README.md b/README.md index 665a7d2..5fe606c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # LaunchDarkly .NET Test Helpers [![NuGet](https://img.shields.io/nuget/v/LaunchDarkly.TestHelpers.svg?style=flat-square)](https://www.nuget.org/packages/LaunchDarkly.TestHelpers/) -[![CircleCI](https://circleci.com/gh/launchdarkly/dotnet-test-helpers.svg?style=shield)](https://circleci.com/gh/launchdarkly/dotnet-test-helpers) +[![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) [![Documentation](https://img.shields.io/static/v1?label=GitHub+Pages&message=API+reference&color=00add8)](https://launchdarkly.github.io/dotnet-test-helpers) 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.