34 lines
845 B
YAML
34 lines
845 B
YAML
name: integration-test
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- name: test
|
|
run: ./test.sh
|
|
|
|
- name: 📧 Discord success notification
|
|
continue-on-error: true
|
|
env:
|
|
DISCORD_WEBHOOK: ${{ secrets.discord_webhook }}
|
|
uses: Ilshidur/action-discord@master
|
|
with:
|
|
args: '☑️ Integration test passed for branch `${{ github.ref }}` and commit `${{ github.sha }}`'
|
|
|
|
- name: 📧 Discord failure notification
|
|
if: failure()
|
|
env:
|
|
DISCORD_WEBHOOK: ${{ secrets.discord_webhook }}
|
|
uses: Ilshidur/action-discord@master
|
|
with:
|
|
args: '🚫 Integration test failed for branch `${{ github.ref }}` and commit `${{ github.sha }}`'
|