From 7dea980431d71c3ba4eaabe97fda0304ad0ae24a Mon Sep 17 00:00:00 2001 From: Jackie Han Date: Mon, 31 Oct 2022 19:52:06 -0700 Subject: [PATCH] Add windows platform in CI workflow (#330) * Add windows platform in CI workflow Signed-off-by: Jackie Han * Adjust text content for buidling on Windows Signed-off-by: Jackie Han * Update long text message format in FormattedFormRow Signed-off-by: Jackie Han * Update long text message format in FormattedFormRow Signed-off-by: Jackie Han * Update long text message format in FormattedFormRow Signed-off-by: Jackie Han * Update long text message format in FormattedFormRow Signed-off-by: Jackie Han * Update long text message format in FormattedFormRow Signed-off-by: Jackie Han * Update long text message format in FormattedFormRow Signed-off-by: Jackie Han Signed-off-by: Jackie Han (cherry picked from commit d8af1473501e1beb8d3fdef72dc814cb2040f5f6) --- .github/workflows/unit-tests-workflow.yml | 6 +++++- .../NameAndDescription/NameAndDescription.tsx | 3 +-- .../DefineDetector/components/Settings/Settings.tsx | 10 ++++------ .../__tests__/__snapshots__/Settings.test.tsx.snap | 4 ++-- .../__snapshots__/DefineDetector.test.tsx.snap | 12 ++++++------ .../Overview/containers/AnomalyDetectionOverview.tsx | 3 +-- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/unit-tests-workflow.yml b/.github/workflows/unit-tests-workflow.yml index 73e98f4a..838d9ae2 100644 --- a/.github/workflows/unit-tests-workflow.yml +++ b/.github/workflows/unit-tests-workflow.yml @@ -13,9 +13,13 @@ jobs: name: Run unit tests strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: + # Enable longer filenames for windows + - name: Enable longer filenames + if: ${{ matrix.os == 'windows-latest' }} + run: git config --system core.longpaths true - name: Checkout OpenSearch Dashboards uses: actions/checkout@v2 with: diff --git a/public/pages/DefineDetector/components/NameAndDescription/NameAndDescription.tsx b/public/pages/DefineDetector/components/NameAndDescription/NameAndDescription.tsx index 17bf1ffe..cd90e6bc 100644 --- a/public/pages/DefineDetector/components/NameAndDescription/NameAndDescription.tsx +++ b/public/pages/DefineDetector/components/NameAndDescription/NameAndDescription.tsx @@ -27,8 +27,7 @@ function NameAndDescription(props: NameAndDescriptionProps) { {({ field, form }: FieldProps) => ( { { spec renders the component 1`] = ` >
spec renders the component 1`] = ` class="euiText euiText--medium sublabel" style="max-width: 400px;" > - Define how often the detector collects data to generate anomalies. The shorter the interval is, the more real time the detector results will be, and the more computing resources the detector will need. + Define how often the detector collects data to generate anomalies. The shorter the interval is, the more real time the detector results will be, and the more computing resources the detector will need. Full creating detector definition renders the compon >
Full creating detector definition renders the compon class="euiText euiText--medium sublabel" style="max-width: 400px;" > - Define how often the detector collects data to generate anomalies. The shorter the interval is, the more real time the detector results will be, and the more computing resources the detector will need. + Define how often the detector collects data to generate anomalies. The shorter the interval is, the more real time the detector results will be, and the more computing resources the detector will need. empty creating detector definition renders the compo >