-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.57 KB
/
integration.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
name: Integration tests
on:
push:
branches:
- develop
env:
SLACK_CHANNEL: integration
SLACK_USERNAME: slackbot
SLACK_ICON: https://github.githubassets.com/images/icons/emoji/unicode/1f916.png
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
MSG_MINIMAL: ref,actions url
jobs:
test:
name: Integration tests
runs-on: self-hosted
steps:
- name: Gain back workspace permissions # https://github.com/actions/checkout/issues/211
run: |
[ -d "${GITHUB_WORKSPACE}" ] && sudo chown -R $USER:$USER ${GITHUB_WORKSPACE}
- name: Checkout
uses: actions/checkout@v2
- name: Run integration tests
shell: bash
run: |
export TMPDIR=/var/tmp/
./test/integration/ci-prep.sh
make wait-for-images
make integration-deployment
make integration-ansible-modules
env:
DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: test/integration/**/output/*.xml
- name: Slack Notification on Success
uses: rtCamp/action-slack-notify@v2
# this step is sometimes flaky... :(
continue-on-error: true
env:
SLACK_COLOR: good
SLACK_TITLE: 'Integration Tests succeeded'
if: ${{ success() }}
- name: Slack Notification on Failure
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: red
SLACK_TITLE: 'Integration Tests failed'
if: ${{ failure() }}