Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fix UT workflow to only run bootstrap once #210

Merged
merged 2 commits into from
Jun 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/workflows/unit-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,11 @@ jobs:
uses: actions/checkout@v2
with:
path: kibana/plugins/anomaly-detection-kibana-plugin
- name: Attempt to bootstrap the plugin
continue-on-error: true
run: |
cd kibana/plugins/anomaly-detection-kibana-plugin
yarn kbn bootstrap
- name: Bootstrap the plugin again
if: ${{ always() }}
- name: Bootstrap the plugin
run: |
cd kibana/plugins/anomaly-detection-kibana-plugin
yarn kbn bootstrap
- name: Run tests
if: ${{ always() }}
run: |
cd kibana/plugins/anomaly-detection-kibana-plugin
yarn run test:jest
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`<AlertsButton /> spec Alerts Button renders component with monitor 1`]
detectorid="test-detector-id"
detectorinterval="1"
detectorname="test-detector-name"
href="/899c56c6-99d0-539b-8"
href="/f899c56c-6299-5d0d-8"
monitor="[object Object]"
rel="noreferrer"
unit="Minutes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ exports[`<AlertsFlyout /> spec Alerts Flyout renders component with monitor 1`]
detectorid="GILVg3EBhaIh92zvX8uE"
detectorinterval="1"
detectorname="test detector"
href="/899c56c6-99d0-539b-8"
href="/f899c56c-6299-5d0d-8"
monitor="[object Object]"
rel="noreferrer"
unit="Minutes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ exports[`<AlertsStat /> spec Alert Stat renders component with monitor and loadi
</p>
<a
class="euiLink euiLink--primary"
href="/1d42b75b-3f59-550a-a"
href="/187218e9-1d42-5b75-a"
rel="noopener noreferrer"
style="font-size: 14px;"
target="_blank"
Expand Down Expand Up @@ -88,7 +88,7 @@ exports[`<AlertsStat /> spec Alert Stat renders component with monitor and not l
</p>
<a
class="euiLink euiLink--primary"
href="/899c56c6-99d0-539b-8"
href="/f899c56c-6299-5d0d-8"
rel="noopener noreferrer"
style="font-size: 14px;"
target="_blank"
Expand Down
Loading