diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml new file mode 100755 index 0000000..51fa38b --- /dev/null +++ b/.github/workflows/dotnetcore.yml @@ -0,0 +1,23 @@ +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/JT808.Protocol.sln + - name: dotnet build + run: dotnet build ./src/JT808.Protocol.Test/JT808.Protocol.Test.csproj + - name: dotnet test + run: dotnet test ./src/JT808.Protocol.Test/JT808.Protocol.Test.csproj diff --git a/README.md b/README.md index f3163d9..3ffd13d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # JT808协议 [![MIT Licence](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/SmallChi/JT808/blob/master/LICENSE)[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FSmallChi%2FJT808.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FSmallChi%2FJT808?ref=badge_shield)[![Build Status](https://travis-ci.org/SmallChi/JT808.svg?branch=master)](https://travis-ci.org/SmallChi/JT808) +[![Github Build Status](https://github.com/SmallChi/JT808/workflows/dotnetcore/badge.svg?branch=master)](https://github.com/SmallChi/JT808/actions?query=workflow%3Adotnetcore+branch%3Amaster) ## 前提条件