update build workflow

This commit is contained in:
h1dden-da3m0n 2021-06-18 22:57:33 +02:00
parent 8989729c0f
commit e7cc066294
2 changed files with 42 additions and 8 deletions

View File

@ -1,4 +1,4 @@
name: Test Build Plugin
name: Build Plugin
on:
push:
@ -21,11 +21,14 @@ jobs:
with:
dotnet-version: 5.0.x
- name: Install dependencies
run: dotnet restore
- name: Build Jellyfin Plugin
uses: oddstr13/jellyfin-plugin-repository-manager@v0.4.2
id: jprm
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: build-artifact
retention-days: 30
if-no-files-found: error
path: ${{ steps.jprm.outputs.artifact }}

31
.github/workflows/test-dotnet.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Test Plugin
on:
push:
branches: [ master ]
paths-ignore:
- '**/*.md'
pull_request:
branches: [ master ]
paths-ignore:
- '**/*.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal