Various fixes for the refactored workflows #29
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 | |
- name: Download repack artifact | |
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: | |
- build-release | |
- smoke-test-inflator | |
if: failure() | |
uses: ./.github/workflows/notify.yml | |
with: | |
name: ${{ github.workflow }} | |
success: ${{ !contains(needs.*.result, 'failure') }} | |
secrets: inherit |