Skip to content

Commit

Permalink
Create pull-request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjswan authored Apr 25, 2024
1 parent da7eec9 commit 9c58f07
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Test / Fanart Handler

on:
workflow_dispatch:
pull_request:

jobs:
build:
name: Fanart Handler / Build
runs-on: windows-2019
steps:
- name: Setup Visual Studio 2019
uses: microsoft/setup-msbuild@v2
with:
vs-version: 16.11

- name: Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build
run: |
build_git.bat < nul
working-directory: ${{ github.workspace }}\scripts
shell: cmd

- name: Upload Artifact / Plugin
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: FanartHandler
path: |
${{ github.workspace }}\FanartHandler\bin\Release\FanartHandler.dll
retention-days: 7
if-no-files-found: error

ci-status:
name: Build Status
runs-on: ubuntu-latest
needs:
- build
if: always()
steps:
- name: Success
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Failure
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1

0 comments on commit 9c58f07

Please sign in to comment.