-
Notifications
You must be signed in to change notification settings - Fork 46
Target .NET Standard 2.0 #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 38 commits
5a3aaef
353053a
d1299c2
8233ccd
a4fcf10
6fee86d
afc8d70
ba18d97
cb6d25f
249c59e
cc96c41
4769cc7
91186b5
5e4ade5
cf0bf17
a825792
9057a87
1456dd5
3b109c0
c01249b
c532b10
bf0bf8a
cfcc786
9488210
b0a524c
7137f09
3121220
72d2d0c
b56c34f
4d5dde2
e206725
ae849fc
f193985
6dde211
05c580d
e4f6a6b
dd9e835
4094afe
1b20013
4643fbf
e10b00e
3e1f598
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,10 @@ on: | |
- cron: "0 1 * * *" | ||
|
||
env: | ||
redis_stack_version: 6.2.2-v5 | ||
redis_stack_version: 6.2.6-v6 | ||
|
||
jobs: | ||
|
||
build_and_test: | ||
build_and_Test: | ||
name: Build and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -36,12 +35,37 @@ jobs: | |
- name: Build | ||
run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true | ||
- name: Test | ||
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover | ||
run: dotnet test -f net6.0 --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover | ||
- name: Test | ||
run: dotnet test -f net7.0 --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover | ||
- name: Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
verbose: true | ||
|
||
- name: Build | ||
run: dotnet pack -c Release | ||
build_and_test_windows: | ||
name: Build and Test on Windows | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Vampire/setup-wsl@v2 | ||
with: | ||
distribution: Ubuntu-22.04 | ||
- name: Install Redis | ||
shell: wsl-bash {0} | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install curl -y && sudo apt-get install gpg -y && apt-get install lsb-release -y && apt-get install libgomp1 -y | ||
curl https://packages.redis.io/redis-stack/redis-stack-server-6.2.6-v6.jammy.x86_64.tar.gz -o redis-stack.tar.gz | ||
tar xf redis-stack.tar.gz | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true | ||
- name: Test | ||
shell: cmd | ||
run: | | ||
START wsl ./redis-stack-server-6.2.6-v6/bin/redis-stack-server & | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same |
||
dotnet test -f net481 --no-build --verbosity normal |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net6.0;net7.0</TargetFrameworks> | ||
<TargetFrameworks>net6.0;net7.0;net481</TargetFrameworks> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Question for my own knowledge 481 because it's the latest in 4? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes - .NET Framework 4.8.1 is the latest (and likely final) framework version. It's also one of two framework versions that ship natively on the windows-latest image |
||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<LangVersion>latest</LangVersion> | ||
|
||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
${{env.redis_stack_version}}