-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1.79 KB
/
github-actions-usetrace-integration-test.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
name: Invoke a Trace on Usetrace on push to development branch
on:
push:
branches:
- development
jobs:
test-usetrace-action:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Usetrace Trace and Wait for it to finish
id: executeTrace
uses: tarmac/usetrace-github-action@v1
with:
# Required parameters
trigger-type: project # Options: 'trace' or 'project')"
trigger-id: ZoMdcx6weAAXXca7VhlygnfF8lGO5Pmo # Id of a test Project
#trigger-type: ${{ vars.USETRACE_TRIGGER_TYPE }} # Options: 'trace' or 'project')"
#trigger-id: ${{ vars.USETRACE_TRIGGER_ID }} # Id of the build to trigger.
# Optional parameters
browsers: chrome, firefox # Coma separated list of browsers (ex: 'chrome, firefox').
base-url: https://de.wikipedia.org/ # baseUrl to execute against (defaults to the project baseUrl)"
# Project Only Optional (only if trigger-type: project)
tags: flaky # Coma separated list of tags. Only traces with those tags would be run (by default runs all traces)"
build-timeout-seconds: 120
- name: Check Trace execution result
env:
BUILD_ID: ${{ steps.executeTrace.outputs.id }}
STATUS: ${{ steps.executeTrace.outputs.status }}
RESULT_REQUEST: ${{ steps.executeTrace.outputs.request }}
RESULT_FINISH: ${{ steps.executeTrace.outputs.finish }}
RESULT_PASS: ${{ steps.executeTrace.outputs.pass }}
RESULT_FAIL: ${{ steps.executeTrace.outputs.fail }}
RESULT_REPORT: ${{ steps.executeTrace.outputs.report }}
run: |
echo "Trace result: $BUILD_ID $STATUS $RESULT_REQUEST $RESULT_FINISH $RESULT_PASS $RESULT_FAIL "
echo "REPORT: $RESULT_REPORT "