mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 03:01:24 +00:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: Test mewtocol on real hardware
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
|
|
jobs:
|
|
|
|
check-plcs-online:
|
|
name: 'Test PLC online status'
|
|
runs-on: [self-hosted, linux, x64, womed-local-linux]
|
|
steps:
|
|
- name: 'Ping FPX-H-C30T'
|
|
run: ping 192.168.115.210 -w 5
|
|
- name: 'Ping FPX-H-C14R'
|
|
run: ping 192.168.115.212 -w 5
|
|
- name: 'Ping FPX-C30T'
|
|
run: ping 192.168.115.213 -w 5
|
|
|
|
run-unit-tests:
|
|
name: 'Run unit tests'
|
|
needs: check-plcs-online
|
|
runs-on: [self-hosted, linux, x64, womed-local-linux]
|
|
strategy:
|
|
matrix:
|
|
dotnet-version: [ '6.0.x' ]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: 'Setup dotnet ${{ matrix.dotnet-version }}'
|
|
uses: actions/setup-dotnet@v2
|
|
with:
|
|
dotnet-version: ${{ matrix.dotnet-version }}
|
|
- name: 'Run tests'
|
|
run: |
|
|
cd '${{ github.workspace }}/MewtocolTests'
|
|
dotnet test --logger:"console;verbosity=detailed"
|