-
Notifications
You must be signed in to change notification settings - Fork 9
66 lines (62 loc) · 1.79 KB
/
run-integration-tests.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Run Integration Tests
on:
push:
branches:
- main
schedule:
- cron: "0 5 * * *"
jobs:
integration-test-runner:
runs-on: ubuntu-latest
steps:
- uses: oNaiPs/secrets-to-env-action@v1
with:
secrets: ${{ toJSON(secrets) }}
- uses: actions/checkout@v4
with:
path: ./
ref: main
- name: Install just
uses: extractions/setup-just@v2
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "stable"
- name: prep workspace
run: |
just init-workspace
- name: run integration tests
run: |
just integration-test-all-plugins
notify-fail:
needs: [integration-test-runner]
runs-on: ubuntu-latest
if: failure()
steps:
- name: Slack notify
id: slack
uses: slackapi/slack-github-action@v1
with:
payload: |
{
"workflow": "${{github.workflow}}",
"message": "Plugin Integration tests have failed! Please check the logs for more information."
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
notify-success:
needs: [integration-test-runner]
runs-on: ubuntu-latest
if: success()
steps:
- name: Slack notify
id: slack
uses: slackapi/slack-github-action@v1
with:
payload: |
{
"workflow": "${{github.workflow}}",
"message": "Plugin Integration tests have passed! :tada:"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}