Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Remove Travis and use Github Actions #228

Merged
merged 43 commits into from
Nov 23, 2019
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
2e56622
Create dotnetcore.yml
erikzhang Nov 22, 2019
04f68a7
dotnet -format
erikzhang Nov 22, 2019
5857a3f
Update dotnetcore.yml
erikzhang Nov 22, 2019
932b357
Update dotnetcore.yml
erikzhang Nov 22, 2019
f2a1bc9
Update dotnetcore.yml
erikzhang Nov 22, 2019
8d5bf3e
Update dotnetcore.yml
erikzhang Nov 22, 2019
cf45622
Update dotnetcore.yml
erikzhang Nov 22, 2019
17ba878
Merge branch 'master' into github-actions
shargon Nov 22, 2019
b6855de
Update dotnetcore.yml
erikzhang Nov 22, 2019
153a90f
Update dotnetcore.yml
erikzhang Nov 22, 2019
987beb0
Update dotnetcore.yml
erikzhang Nov 22, 2019
7e10f06
Update dotnetcore.yml
erikzhang Nov 22, 2019
501d5f8
Update dotnetcore.yml
erikzhang Nov 22, 2019
4b3da64
Remove travis
erikzhang Nov 22, 2019
21269ca
Merge branch 'master' into github-actions
erikzhang Nov 22, 2019
fecc572
Update README.md
erikzhang Nov 22, 2019
eb43012
Update and rename dotnetcore.yml to test.yml
erikzhang Nov 22, 2019
f2b884e
Create dotnetcore.yml
erikzhang Nov 22, 2019
66f2532
Update neo-vm.csproj
erikzhang Nov 22, 2019
6485311
Update and rename dotnetcore.yml to publish.yml
erikzhang Nov 22, 2019
e8fe172
Update publish.yml
erikzhang Nov 22, 2019
53b6140
Update publish.yml
erikzhang Nov 22, 2019
32f2417
Update publish.yml
erikzhang Nov 22, 2019
d358d7e
Update publish.yml
erikzhang Nov 22, 2019
ace92dd
Update test.yml
erikzhang Nov 22, 2019
f5f15ff
Delete publish.yml
erikzhang Nov 22, 2019
52683f7
Update and rename test.yml to dotnetcore.yml
erikzhang Nov 22, 2019
f9ea888
Update dotnetcore.yml
erikzhang Nov 22, 2019
e584761
Update dotnetcore.yml
erikzhang Nov 22, 2019
dee001c
Update dotnetcore.yml
erikzhang Nov 22, 2019
a7cd6a0
Update dotnetcore.yml
erikzhang Nov 22, 2019
93b44f4
Update dotnetcore.yml
erikzhang Nov 22, 2019
66d717b
Update dotnetcore.yml
erikzhang Nov 22, 2019
e129ff7
Update dotnetcore.yml
erikzhang Nov 22, 2019
33d1ea1
Update dotnetcore.yml
erikzhang Nov 22, 2019
b8cf0c0
Update dotnetcore.yml
erikzhang Nov 23, 2019
49ba2ef
Update dotnetcore.yml
erikzhang Nov 23, 2019
5baae1d
Update dotnetcore.yml
erikzhang Nov 23, 2019
c739887
Update dotnetcore.yml
erikzhang Nov 23, 2019
0e321ca
Update dotnetcore.yml
erikzhang Nov 23, 2019
94b7b1a
Update dotnetcore.yml
erikzhang Nov 23, 2019
d0d9a4b
Update dotnetcore.yml
erikzhang Nov 23, 2019
6f97d37
Update dotnetcore.yml
erikzhang Nov 23, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: .NET Core

on: [push]

jobs:
test:

runs-on: ubuntu-latest

steps:
- name: Chectout
uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.0.100
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of hard coding this in the yaml file where it only affects the build system, we should put this in a global.json file. I'm guessing there's a GH Action to pull the dotnet-version from global.json.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't find a way right now. Maybe we improve it later.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Github Actions doesn't support it. https://github.com/actions/setup-dotnet#usage

- name: Build with dotnet
run: dotnet build --configuration Release
erikzhang marked this conversation as resolved.
Show resolved Hide resolved
- name: Check format
run: |
dotnet tool install --tool-path ./ dotnet-format
./dotnet-format --check --dry-run -v diagnostic
- name: Test
run: |
find tests -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./tests/neo-vm.Tests/coverage.info
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.