mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-16 03:42:51 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e524d82784 | ||
|
|
21f9b32863 | ||
|
|
f9f0a99672 | ||
|
|
5835fed96f | ||
|
|
7893d019af |
6
.github/workflows/dotnet-core.yml
vendored
6
.github/workflows/dotnet-core.yml
vendored
@@ -18,14 +18,16 @@ jobs:
|
|||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v1
|
||||||
with:
|
with:
|
||||||
dotnet-version: 5.0.x
|
dotnet-version: 5.0.x
|
||||||
|
- name: Install NUnit.ConsoleRunner
|
||||||
|
run: nuget install NUnit.ConsoleRunner -Version 3.13.0 -DirectDownload -OutputDirectory .
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
- name: Build
|
- name: Build
|
||||||
run: dotnet build --configuration Release --no-restore /p:version=1.1.${{ github.run_number }}
|
run: dotnet build --configuration Release --no-restore /p:version=1.1.${{ github.run_number }}
|
||||||
|
- name: Tests
|
||||||
|
run: ./NUnit.ConsoleRunner.3.13.0/tools/nunit3-console.exe "Sharp7.Rx.Tests\bin\Release\net461\Sharp7.Rx.Tests.dll"
|
||||||
- name: NugetPublish
|
- name: NugetPublish
|
||||||
run: dotnet nuget push Sharp7.Rx\bin\Release\Sharp7.Rx.1.1.${{ github.run_number }}.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_DEPLOY_KEY }}
|
run: dotnet nuget push Sharp7.Rx\bin\Release\Sharp7.Rx.1.1.${{ github.run_number }}.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_DEPLOY_KEY }}
|
||||||
- name: Test
|
|
||||||
run: dotnet test --no-restore --verbosity normal
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Sharp7Reactive
|
# Sharp7Reactive
|
||||||
|
|
||||||
[](https://ci.appveyor.com/project/fbarresi/sharp7reactive)
|
[](https://github.com/evopro-ag/Sharp7Reactive/actions/workflows/dotnet-core.yml)
|
||||||

|

|
||||||
[](https://www.nuget.org/packages/Sharp7.Rx/)
|
[](https://www.nuget.org/packages/Sharp7.Rx/)
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ Scenario: Parsing variable name for bool
|
|||||||
| Db | 5 | 887 | 20 | 0 | String |
|
| Db | 5 | 887 | 20 | 0 | String |
|
||||||
| Db | 506 | 216 | 1 | 0 | Byte |
|
| Db | 506 | 216 | 1 | 0 | Byte |
|
||||||
| Db | 506 | 216 | 5 | 0 | Byte |
|
| Db | 506 | 216 | 5 | 0 | Byte |
|
||||||
| Db | 506 | 216 | 0 | 0 | Double |
|
| Db | 506 | 216 | 4 | 0 | Double |
|
||||||
| Db | 506 | 216 | 4 | 0 | DInteger |
|
| Db | 506 | 216 | 4 | 0 | DInteger |
|
||||||
| Db | 506 | 216 | 2 | 0 | Integer |
|
| Db | 506 | 216 | 2 | 0 | Integer |
|
||||||
| Db | 506 | 216 | 2 | 0 | Integer |
|
| Db | 506 | 216 | 2 | 0 | Integer |
|
||||||
|
|||||||
2
Sharp7.Rx.Tests/ParsingS7VariableName.feature.cs
generated
2
Sharp7.Rx.Tests/ParsingS7VariableName.feature.cs
generated
@@ -186,7 +186,7 @@ this.ScenarioInitialize(scenarioInfo);
|
|||||||
"Db",
|
"Db",
|
||||||
"506",
|
"506",
|
||||||
"216",
|
"216",
|
||||||
"0",
|
"4",
|
||||||
"0",
|
"0",
|
||||||
"Double"});
|
"Double"});
|
||||||
table2.AddRow(new string[] {
|
table2.AddRow(new string[] {
|
||||||
|
|||||||
@@ -74,6 +74,10 @@ namespace Sharp7.Rx
|
|||||||
{
|
{
|
||||||
s7VariableAddress.Length = 8;
|
s7VariableAddress.Length = 8;
|
||||||
}
|
}
|
||||||
|
else if (type == DbType.Double)
|
||||||
|
{
|
||||||
|
s7VariableAddress.Length = 4;
|
||||||
|
}
|
||||||
|
|
||||||
return s7VariableAddress;
|
return s7VariableAddress;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user