-
-
Notifications
You must be signed in to change notification settings - Fork 348
42 lines (40 loc) · 1.12 KB
/
smoke.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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') }}