pandorabox-mods/.github/workflows/integration-test.yml
2021-02-01 07:33:18 +01:00

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 }}`'