-
-
Notifications
You must be signed in to change notification settings - Fork 348
46 lines (43 loc) · 1.21 KB
/
test.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
43
44
45
46
name: Test CKAN + NetKAN
on:
push:
branches-ignore:
- master
workflow_call:
jobs:
build-debug:
uses: ./.github/workflows/build.yml
test-build:
needs: build-debug
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install runtime dependencies
run: sudo apt-get install -y xvfb
- uses: actions/download-artifact@v4
with:
name: Debug-out
path: _build/out/
- uses: actions/download-artifact@v4
with:
name: Debug-repack-unsigned
path: _build/repack/
- name: Run tests
run: xvfb-run ./build test+only --configuration=Debug --where="Category!=FlakyNetwork"
notify:
needs:
- test-build
runs-on: ubuntu-latest
if: failure()
steps:
- name: Send Discord Notification
env:
JOB_STATUS: failure
WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK }}
HOOK_OS_NAME: ${{ runner.os }}
WORKFLOW_NAME: ${{ github.workflow }}
if: env.WEBHOOK_URL
run: |
git clone https://github.com/DiscordHooks/github-actions-discord-webhook.git webhook
bash webhook/send.sh $JOB_STATUS $WEBHOOK_URL
shell: bash