34 lines
796 B
YAML
34 lines
796 B
YAML
name: Pull Request Check
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup .NET 9.0
|
|
uses: actions/setup-dotnet@v5
|
|
with:
|
|
dotnet-version: 9.0.x
|
|
|
|
- name: Build project
|
|
run: dotnet build --configuration Release --property:Version=1.0.0.0 ./src
|
|
|
|
- name: Test project
|
|
run: dotnet test --configuration Release ./src
|
|
|
|
- name: Publish artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: my-artifact
|
|
path: |
|
|
./src/Jellyfin.Plugin.Kinopoisk/bin/Release/net9.0/Jellyfin.Plugin.Kinopoisk.dll
|
|
./src/KinopoiskUnofficialInfo.ApiClient/bin/Release/net9.0/KinopoiskUnofficialInfo.ApiClient.dll
|