Consolidate Discord notification steps #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Smoke Test NetKAN | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
workflow_call: | |
jobs: | |
build-release: | |
uses: ./.github/workflows/build.yml | |
with: | |
configuration: Release | |
smoke-test-inflator: | |
needs: build-release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: Release-repack-unsigned | |
path: _build/repack/ | |
- name: Run inflator container smoke test | |
working-directory: _build | |
run: | | |
cp -v repack/Release/netkan.exe . | |
docker build --tag inflator --file ../Dockerfile.netkan . | |
docker run --rm --name inflator --entrypoint /bin/bash inflator -c " | |
mono netkan.exe https://raw.githubusercontent.com/KSP-CKAN/NetKAN/master/NetKAN/ZeroMiniAVC.netkan | |
" | |
notify: | |
needs: | |
- smoke-test-inflator | |
if: failure() | |
runs-on: ubuntu-latest | |
steps: | |
- uses: ./.github/actions/notify | |
with: | |
name: ${{ github.workflow }} | |
success: ${{ !contains(needs.*.result, 'failure') }} |