diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..1ca89c8 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,33 @@ +name: dotnet + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 2.1.401 + + - name: Install dependencies + run: dotnet restore + + - name: Build + run: dotnet build --configuration Release --no-restore + + - name: Test + run: dotnet test -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[JsonLD.Test*]*" + + - name: Codecov + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + run: bash <(curl -s https://codecov.io/bash) diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e175a37..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: csharp -mono: none -env: - global: - - DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 - - DOTNET_CLI_TELEMETRY_OPTOUT=1 - - secure: LyfZri+LDXaez/OqC/JU+HMNQeDebmf+SYPZUOGDtWeYBWsYdpsIuhQj5PgfV5aNwSMeefxjFPk/27Cw8D7M7SDcIavBoZbP5fCBqGr9FQKRWkDizaKqP1Mnmu5bFCCr7+7jgTueFk2NZ60rj6vJsmmDtIrMoGF07RzqPySgfLM= -dotnet: 2.1.401 -install: -- dotnet restore -script: -- dotnet test -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[JsonLD.Test*]*" -after_success: -- bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 8c7ace6..df0f99c 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A [JSON-LD][jsonld] processor for .NET. [![NuGet][nuget-badge]][nuget] -[![Build Status][travis-badge]][travis] +![Build Status][gha-badge] [![codecov][codecov-badge]][codecov] This project has adopted the [Microsoft Open Source Code of Conduct][coc]. @@ -49,5 +49,4 @@ This project began life as a [Sharpen][sharpen]-based auto-port from [dnc-tutorial]: https://www.microsoft.com/net/core [codecov]: https://codecov.io/gh/linked-data-dotnet/json-ld.net [codecov-badge]: https://img.shields.io/codecov/c/github/linked-data-dotnet/json-ld.net/master.svg - [travis]: https://travis-ci.org/linked-data-dotnet/json-ld.net - [travis-badge]: https://img.shields.io/travis/linked-data-dotnet/json-ld.net.svg + [gha-badge]: https://github.com/linked-data-dotnet/json-ld.net/workflows/dotnet/badge.svg