Skip to content

Commit

Permalink
Merge feature/observability into main branch (opensearch-project#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuali925 authored Oct 14, 2021
2 parents aafdd03 + 9cbb7a9 commit a9c5179
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Test and Build Trace Analytics
on: [pull_request, push]

env:
PLUGIN_NAME: trace-analytics-dashboards
PLUGIN_NAME: observability
OPENSEARCH_VERSION: '1.x'
OPENSEARCH_PLUGIN_VERSION: 1.1.0.0

Expand Down Expand Up @@ -43,33 +43,35 @@ jobs:
- name: Checkout Plugin
uses: actions/checkout@v2
with:
path: OpenSearch-Dashboards/plugins/trace-analytics
path: OpenSearch-Dashboards/plugins/observability

- name: Plugin Bootstrap
run: |
cd OpenSearch-Dashboards/plugins/trace-analytics
cd OpenSearch-Dashboards/plugins/observability
yarn osd bootstrap
- name: Test
run: |
cd OpenSearch-Dashboards/plugins/trace-analytics
yarn test --coverage
# TODO enable unit tests when ready
# - name: Test
# run: |
# cd OpenSearch-Dashboards/plugins/observability
# yarn test --coverage

- name: Upload coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
direcotry: ./OpenSearch-Dashboards/plugins/trace-analytics
direcotry: ./OpenSearch-Dashboards/plugins/observability

# TODO remove hard coded version when observability is ready
- name: Build Artifact
run: |
cd OpenSearch-Dashboards/plugins/trace-analytics
yarn build
cd OpenSearch-Dashboards/plugins/observability
yarn build --opensearch-dashboards-version 1.1.0
mv ./build/*.zip ./build/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}.zip
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: trace-analytics
path: ./OpenSearch-Dashboards/plugins/trace-analytics/build
name: observability
path: ./OpenSearch-Dashboards/plugins/observability/build

0 comments on commit a9c5179

Please sign in to comment.