Skip to content

Commit

Permalink
Merge pull request #12 from apivideo/csharp-ci
Browse files Browse the repository at this point in the history
C# CI
  • Loading branch information
bot-api-video authored and olivier-lando committed Jun 9, 2021
2 parents 48a2406 + bfb3901 commit 3fde50a
Show file tree
Hide file tree
Showing 102 changed files with 774 additions and 354 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release Nuget package
on:
release:
types: [created]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [ '3.1.x' ]
steps:
- uses: actions/checkout@v2
- name: Setup Dotnet ${{ matrix.dotnet }}
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Test
run: |
cd src
msbuild /r ApiVideo.csproj
msbuild -t:pack
cd Debug
nuget push `ls` -Source nuget.org -ApiKey $NUGET_KEY -NonInteractive
env:
$NUGET_KEY: ${{ secrets.NUGET_KEY }}
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Run unit tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [ '3.1.x' ]
steps:
- uses: actions/checkout@v2
- name: Setup Dotnet ${{ matrix.dotnet }}
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Test
run: |
cd src
msbuild /r ApiVideo.csproj
cd ../tests
msbuild /r ApiVideoTests.csproj
dotnet test
env:
API_KEY: ${{ secrets.API_KEY }}
Loading

0 comments on commit 3fde50a

Please sign in to comment.