forked from celestiaorg/celestia-app
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.05 KB
/
test-e2e.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
name: test-e2e
on:
push:
branches:
- main
paths:
- "**.go"
- go.mod
- go.sum
jobs:
test-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Setup kubeconfig
env:
KUBECONFIG_FILE: ${{ secrets.KNUU_KUBECONFIG_FILE }}
run: |
mkdir -p $HOME/.kube
echo "${KUBECONFIG_FILE}" > $HOME/.kube/config
- name: Run e2e tests
run: make test-e2e
- name: If the e2e test fails, notify Slack channel #e2e-test-failures
if: failure()
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
token: ${{ secrets.GITHUB_TOKEN }}
notification_title: "E2E test failure"
message_format: "{emoji} *{workflow}* {status_message} in <{run_url}|{repo}>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_E2E_TEST_FAILURES }}