Skip to content

Commit cad6be1

Browse files
authored
Merge pull request #44 from linked-data-dotnet/feature/github-actions
Replace Travis with GitHub Actions
2 parents bbbc01e + a219860 commit cad6be1

File tree

3 files changed

+35
-17
lines changed

3 files changed

+35
-17
lines changed

Diff for: .github/workflows/dotnet.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: dotnet
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Setup .NET Core
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: 2.1.401
20+
21+
- name: Install dependencies
22+
run: dotnet restore
23+
24+
- name: Build
25+
run: dotnet build --configuration Release --no-restore
26+
27+
- name: Test
28+
run: dotnet test -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[JsonLD.Test*]*"
29+
30+
- name: Codecov
31+
env:
32+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
33+
run: bash <(curl -s https://codecov.io/bash)

Diff for: .travis.yml

-14
This file was deleted.

Diff for: README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
A [JSON-LD][jsonld] processor for .NET.
44

55
[![NuGet][nuget-badge]][nuget]
6-
[![Build Status][travis-badge]][travis]
6+
![Build Status][gha-badge]
77
[![codecov][codecov-badge]][codecov]
88

99
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
4949
[dnc-tutorial]: https://www.microsoft.com/net/core
5050
[codecov]: https://codecov.io/gh/linked-data-dotnet/json-ld.net
5151
[codecov-badge]: https://img.shields.io/codecov/c/github/linked-data-dotnet/json-ld.net/master.svg
52-
[travis]: https://travis-ci.org/linked-data-dotnet/json-ld.net
53-
[travis-badge]: https://img.shields.io/travis/linked-data-dotnet/json-ld.net.svg
52+
[gha-badge]: https://github.com/linked-data-dotnet/json-ld.net/workflows/dotnet/badge.svg

0 commit comments

Comments
 (0)