-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Migrate to github actions for CI. (#6)
- Loading branch information
1 parent
6ed6157
commit bec6b0e
Showing
5 changed files
with
61 additions
and
82 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI | ||
description: Runs CI for the .NET Server SDK | ||
inputs: | ||
sdk: | ||
description: 'The dotnet SDK to use.' | ||
required: false | ||
default: '9' | ||
target_test_framework: | ||
description: 'The target test framework to use.' | ||
required: false | ||
default: 'net9.0' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ inputs.sdk }} | ||
- run: dotnet restore src/LaunchDarkly.Cache | ||
env: | ||
BUILDFRAMEWORKS: netstandard2.1 | ||
TESTFRAMEWORKS: ${{ inputs.target_test_framework }} | ||
shell: bash | ||
- run: dotnet build src/LaunchDarkly.Cache | ||
env: | ||
BUILDFRAMEWORKS: netstandard2.1 | ||
TESTFRAMEWORKS: ${{ inputs.target_test_framework }} | ||
shell: bash | ||
- run: dotnet test test/LaunchDarkly.Cache.Tests | ||
env: | ||
BUILDFRAMEWORKS: netstandard2.1 | ||
TESTFRAMEWORKS: ${{ inputs.target_test_framework }} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build and Test | ||
|
||
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' | ||
workflow_call: | ||
|
||
jobs: | ||
build-test-linux: | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-latest', 'windows-latest'] | ||
dotnet: [{sdk: '8.x', test-framework: 'net8.0'}, {sdk: '9.x', test-framework: 'net9.0'}] | ||
runs-on: ${{ matrix.os }} | ||
name: Build ${{ matrix.os }} - ${{ matrix.dotnet.sdk }} - ${{ matrix.dotnet.test-framework }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/ci | ||
with: | ||
sdk: ${{ matrix.dotnet.sdk }} | ||
target_test_framework: ${{ matrix.dotnet.test-framework }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters