update ci, actually add ruleset

This commit is contained in:
Cody Robibero
2021-12-14 07:44:50 -07:00
parent 2445823c5a
commit 7cc0743a93
5 changed files with 182 additions and 26 deletions
+18 -15
View File
@@ -1,26 +1,29 @@
version: 2
updates:
# Fetch and update latest `nuget` pkgs
- package-ecosystem: "nuget"
directory: "/"
- package-ecosystem: nuget
directory: /
schedule:
interval: "daily"
time: "00:00"
interval: weekly
open-pull-requests-limit: 10
labels:
- chore
- dependency
- nuget
commit-message:
prefix: "chore"
include: "scope"
prefix: chore
include: scope
# Fetch and update latest `github-actions` pkgs
- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: github-actions
directory: /
schedule:
interval: "weekly"
time: "00:00"
labels:
- "skip-changelog"
interval: monthly
open-pull-requests-limit: 10
labels:
- ci
- dependency
- github_actions
commit-message:
prefix: "ci"
include: "scope"
prefix: ci
include: scope
+19 -10
View File
@@ -1,10 +1,14 @@
name: Test Build Plugin
name: Build Plugin
on:
push:
branches: [ master ]
paths-ignore:
- '**/*.md'
pull_request:
branches: [ master ]
paths-ignore:
- '**/*.md'
jobs:
build:
@@ -12,16 +16,21 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: "Setup .NET Core"
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "5.0.x"
dotnet-version: 6.0.x
- name: "Install dependencies"
run: dotnet restore
- name: Build Jellyfin Plugin
uses: oddstr13/jellyfin-plugin-repository-manager@v0.4.2
id: jprm
with:
dotnet-target: net6.0
- 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 }}
+6 -1
View File
@@ -3,8 +3,12 @@ name: Run CodeQL
on:
push:
branches: [ master ]
paths-ignore:
- '**/*.md'
pull_request:
branches: [ master ]
paths-ignore:
- '**/*.md'
schedule:
- cron: '24 2 * * 4'
@@ -12,6 +16,7 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: github.repository == 'jellyfin/jellyfin-plugin-template'
strategy:
fail-fast: false
@@ -25,7 +30,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 6.0.x
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
+31
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: 6.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