-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.93 KB
/
ci-robot.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Robot Framework - E2E Tests
on:
pull_request:
branches: [ develop ]
jobs:
e2e-tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout 🛎
uses: actions/checkout@v3
- name: Install Robot Framework
run: |
pip install robotframework
- name: Install Playwright (Library Browser)
run: |
pip install robotframework-browser
- name: Install Node Dependencies
run: |
rfbrowser init
- name: E2E Tests ✅
run: |
robot -d ./logs -v BROWSER:chromium -v HEADLESS:true tests/
- name: Upload Reports 🚀
if: always()
uses: actions/upload-artifact@v3
with:
name: Execution Test Reports
path: logs/
if-no-files-found: warn
- name: Slack Notification - Success
if: ${{ success() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: pipeline-notifications
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://cdn-icons-png.flaticon.com/512/1642/1642322.png
SLACK_TITLE: 'All tests passed successfully'
SLACK_MESSAGE: ':robot: Tests after Pull Request passed :robot:'
SLACK_USERNAME: SUCCESS
- name: Slack Notification - Failure
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: pipeline-notifications
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://www.novaconcursos.com.br/portal/wp-content/uploads/2013/12/erro-que-concurseiro-comente-300x3001.png
SLACK_TITLE: 'Some tests failed'
SLACK_MESSAGE: ':fire: Tests after Pull Request failed :fire:'
SLACK_USERNAME: FAILURE