Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
pull_request:
branches:
- main
schedule:
- cron: "0 8 * * 1" # every monday at 8am UTC

name: integration-tests

Expand Down Expand Up @@ -56,3 +58,21 @@ jobs:
license: ${{ secrets.CONNECT_LICENSE_FILE }}
command: |
Rscript -e 'source("tests/test-integrated.R")'

slack-notification:
needs: integration-tests
if: ${{ failure() && github.event_name == 'schedule' }}
runs-on: ubuntu-latest
steps:
- name: Notify Slack of CI failure
uses: slackapi/slack-github-action@v2.1.1
with:
webhook: ${{ secrets.SLACK_WEBHOOK }}
webhook-type: incoming-webhook
payload: |
text: ":x: connectapi nightly integration tests failed"
blocks:
- type: section
text:
type: mrkdwn
text: "View run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
Loading