mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 03:01:24 +00:00
Code ql test
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Test mewtocol on real hardware
|
name: Build pipeline
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -9,6 +9,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
#Check the online status of the test PLCs first
|
||||||
check-plcs-online:
|
check-plcs-online:
|
||||||
name: 'Test PLC online status'
|
name: 'Test PLC online status'
|
||||||
runs-on: [self-hosted, linux, x64, womed-local-linux]
|
runs-on: [self-hosted, linux, x64, womed-local-linux]
|
||||||
@@ -20,6 +21,7 @@ jobs:
|
|||||||
- name: 'Ping FPX-C30T'
|
- name: 'Ping FPX-C30T'
|
||||||
run: ping 192.168.115.213 -w 5
|
run: ping 192.168.115.213 -w 5
|
||||||
|
|
||||||
|
#Run unit tests on the test PLCs
|
||||||
run-unit-tests:
|
run-unit-tests:
|
||||||
name: 'Run unit tests'
|
name: 'Run unit tests'
|
||||||
needs: check-plcs-online
|
needs: check-plcs-online
|
||||||
@@ -38,9 +40,14 @@ jobs:
|
|||||||
cd '${{ github.workspace }}/MewtocolTests'
|
cd '${{ github.workspace }}/MewtocolTests'
|
||||||
dotnet test --logger:"console;verbosity=detailed"
|
dotnet test --logger:"console;verbosity=detailed"
|
||||||
|
|
||||||
|
#Run code ql check
|
||||||
|
code-ql-check:
|
||||||
|
uses: ./.github/workflows/codeql.yml
|
||||||
|
|
||||||
|
#Publish to nuget if version tag change detected
|
||||||
publish-and-push-nuget:
|
publish-and-push-nuget:
|
||||||
name: 'Build and publish to NuGet'
|
name: 'Build and publish to NuGet'
|
||||||
needs: run-unit-tests
|
needs: [run-unit-tests, ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
1
.github/workflows/codeql.yml
vendored
1
.github/workflows/codeql.yml
vendored
@@ -12,6 +12,7 @@
|
|||||||
name: "CodeQL"
|
name: "CodeQL"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_call:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|||||||
Reference in New Issue
Block a user