name: .NET Core

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@master
    - name: Setup .NET Core
      uses: actions/setup-dotnet@master
      with:
        dotnet-version: 3.1.101
    - name: dotnet info
      run: dotnet --info
    - name: dotnet restore
      run: dotnet restore ./src/JT1078.sln
    - name: dotnet JT1078.Protocol.Test build
      run: dotnet build ./src/JT1078.Protocol.Test/JT1078.Protocol.Test.csproj
    - name: dotnet JT1078.Protocol.Test test
      run: dotnet test ./src/JT1078.Protocol.Test/JT1078.Protocol.Test.csproj
    - name: dotnet JT808.Protocol.Extensions.JT1078.Test build
      run: dotnet build ./src/JT808.Protocol.Extensions.JT1078.Test/JT808.Protocol.Extensions.JT1078.Test.csproj
    - name: dotnet JT808.Protocol.Extensions.JT1078.Test test
      run: dotnet test ./src/JT808.Protocol.Extensions.JT1078.Test/JT808.Protocol.Extensions.JT1078.Test.csproj
    - name: dotnet JT809.Protocol.Extensions.JT1078.Test build
      run: dotnet build ./src/JT809.Protocol.Extensions.JT1078.Test/JT809.Protocol.Extensions.JT1078.Test.csproj
    - name: dotnet JT809.Protocol.Extensions.JT1078.Test test
      run: dotnet test ./src/JT809.Protocol.Extensions.JT1078.Test/JT809.Protocol.Extensions.JT1078.Test.csproj
