Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avillk/pr workflow build bwc #39

Open
wants to merge 8 commits into
base: kavilla/ci/cypress_input_control'
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
deleteme
Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
  • Loading branch information
kavilla committed Apr 15, 2022
commit a671e13b24d4c504e9e686978c94abc64112605a
240 changes: 120 additions & 120 deletions .github/workflows/pr_check_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,85 +22,85 @@ env:
CHROMEDRIVER_VERSION: 100.0.0

jobs:
build-lint-test:
runs-on: ubuntu-latest
name: Build and Verify
steps:

- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
registry-url: 'https://registry.npmjs.org'

- name: Setup Yarn
run: |
npm uninstall -g yarn
npm i -g yarn@1.22.10

- name: Run bootstrap
run: yarn osd bootstrap

- name: Run linter
id: linter
run: yarn lint

- name: Run unit tests
id: unit-tests
run: yarn test:jest:ci

- name: Run mocha tests
id: mocha-tests
run: yarn test:mocha

- name: Run integration tests
id: integration-tests
run: yarn test:jest_integration:ci

functional-tests:
runs-on: ubuntu-latest
name: Run functional tests
strategy:
matrix:
group: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]
steps:
- run: echo Running functional tests for ciGroup${{ matrix.group }}

- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
registry-url: 'https://registry.npmjs.org'

- name: Setup Yarn
run: |
npm uninstall -g yarn
npm i -g yarn@1.22.10

# github virtual env is the latest chrome
- name: Setup chromedriver
run: yarn add --dev chromedriver@${{ env.CHROMEDRIVER_VERSION }}

- name: Run bootstrap
run: yarn osd bootstrap

- name: Build plugins
run: node scripts/build_opensearch_dashboards_platform_plugins --no-examples --workers 10

- name: Run CI test group ${{ matrix.group }}
id: ftr-tests
run: node scripts/functional_tests.js --config test/functional/config.js --include ciGroup${{ matrix.group }}
env:
CI_GROUP: ciGroup${{ matrix.group }}
CI_PARALLEL_PROCESS_NUMBER: ciGroup${{ matrix.group }}
JOB: ci${{ matrix.group }}
CACHE_DIR: ciGroup${{ matrix.group }}
# build-lint-test:
# runs-on: ubuntu-latest
# name: Build and Verify
# steps:

# - name: Checkout code
# uses: actions/checkout@v2

# - name: Setup Node
# uses: actions/setup-node@v2
# with:
# node-version-file: ".nvmrc"
# registry-url: 'https://registry.npmjs.org'

# - name: Setup Yarn
# run: |
# npm uninstall -g yarn
# npm i -g yarn@1.22.10

# - name: Run bootstrap
# run: yarn osd bootstrap

# - name: Run linter
# id: linter
# run: yarn lint

# - name: Run unit tests
# id: unit-tests
# run: yarn test:jest:ci

# - name: Run mocha tests
# id: mocha-tests
# run: yarn test:mocha

# - name: Run integration tests
# id: integration-tests
# run: yarn test:jest_integration:ci

# functional-tests:
# runs-on: ubuntu-latest
# name: Run functional tests
# strategy:
# matrix:
# group: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]
# steps:
# - run: echo Running functional tests for ciGroup${{ matrix.group }}

# - name: Checkout code
# uses: actions/checkout@v2

# - name: Setup Node
# uses: actions/setup-node@v2
# with:
# node-version-file: ".nvmrc"
# registry-url: 'https://registry.npmjs.org'

# - name: Setup Yarn
# run: |
# npm uninstall -g yarn
# npm i -g yarn@1.22.10

# # github virtual env is the latest chrome
# - name: Setup chromedriver
# run: yarn add --dev chromedriver@${{ env.CHROMEDRIVER_VERSION }}

# - name: Run bootstrap
# run: yarn osd bootstrap

# - name: Build plugins
# run: node scripts/build_opensearch_dashboards_platform_plugins --no-examples --workers 10

# - name: Run CI test group ${{ matrix.group }}
# id: ftr-tests
# run: node scripts/functional_tests.js --config test/functional/config.js --include ciGroup${{ matrix.group }}
# env:
# CI_GROUP: ciGroup${{ matrix.group }}
# CI_PARALLEL_PROCESS_NUMBER: ciGroup${{ matrix.group }}
# JOB: ci${{ matrix.group }}
# CACHE_DIR: ciGroup${{ matrix.group }}

build-artifact-tests:
container: opensearchstaging/ci-runner:ci-runner-centos7-opensearch-dashboards-build-v1
Expand All @@ -126,44 +126,44 @@ jobs:
- name: Build plugins
run: yarn build-platform --${{ matrix.group }} --skip-os-packages --release

bwc-tests:
runs-on: ubuntu-latest
name: Run functional tests
strategy:
matrix:
group: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]
steps:
- run: echo Running functional tests for ciGroup${{ matrix.group }}

- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
registry-url: 'https://registry.npmjs.org'

- name: Setup Yarn
run: |
npm uninstall -g yarn
npm i -g yarn@1.22.10

# github virtual env is the latest chrome
- name: Setup chromedriver
run: yarn add --dev chromedriver@${{ env.CHROMEDRIVER_VERSION }}

- name: Run bootstrap
run: yarn osd bootstrap

- name: Build plugins
run: node scripts/build_opensearch_dashboards_platform_plugins --no-examples --workers 10

- name: Run CI test group ${{ matrix.group }}
id: ftr-tests
run: node scripts/functional_tests.js --config test/functional/config.js --include ciGroup${{ matrix.group }}
env:
CI_GROUP: ciGroup${{ matrix.group }}
CI_PARALLEL_PROCESS_NUMBER: ciGroup${{ matrix.group }}
JOB: ci${{ matrix.group }}
CACHE_DIR: ciGroup${{ matrix.group }}
# bwc-tests:
# runs-on: ubuntu-latest
# name: Run functional tests
# strategy:
# matrix:
# group: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]
# steps:
# - run: echo Running functional tests for ciGroup${{ matrix.group }}

# - name: Checkout code
# uses: actions/checkout@v2

# - name: Setup Node
# uses: actions/setup-node@v2
# with:
# node-version-file: ".nvmrc"
# registry-url: 'https://registry.npmjs.org'

# - name: Setup Yarn
# run: |
# npm uninstall -g yarn
# npm i -g yarn@1.22.10

# # github virtual env is the latest chrome
# - name: Setup chromedriver
# run: yarn add --dev chromedriver@${{ env.CHROMEDRIVER_VERSION }}

# - name: Run bootstrap
# run: yarn osd bootstrap

# - name: Build plugins
# run: node scripts/build_opensearch_dashboards_platform_plugins --no-examples --workers 10

# - name: Run CI test group ${{ matrix.group }}
# id: ftr-tests
# run: node scripts/functional_tests.js --config test/functional/config.js --include ciGroup${{ matrix.group }}
# env:
# CI_GROUP: ciGroup${{ matrix.group }}
# CI_PARALLEL_PROCESS_NUMBER: ciGroup${{ matrix.group }}
# JOB: ci${{ matrix.group }}
# CACHE_DIR: ciGroup${{ matrix.group }}