-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (48 loc) · 1.45 KB
/
run-synthetics.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
name: Synthetics Run
on:
push:
branches: [main]
pull_request:
schedule:
- cron: '* 0 * * *'
jobs:
e-commerce-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'e-commerce'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.22.3'
- run: npm install
- run: "SYNTHETICS_JUNIT_FILE='junit-synthetics.xml' npx @elastic/synthetics . --reporter=junit"
continue-on-error: true
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1.19
if: always()
with:
files: '**/junit-*.xml'
fail_on: "test failures"
check_name: ECommerce Unit Tests
todos_tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'todos/synthetics-tests'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.22.3'
- run: npm install
- run: "SYNTHETICS_JUNIT_FILE='junit-synthetics.xml' npx @elastic/synthetics . --reporter=junit --suite-params='{\"url\": \"https://elastic.github.io/synthetics-demo/\"} '"
continue-on-error: true
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1.19
if: always()
with:
files: '**/junit-*.xml'
fail_on: "test failures"
check_name: Todos Unit Tests