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 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
182 changes: 129 additions & 53 deletions .github/workflows/pr_check_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,54 +19,97 @@ env:
TEST_OPENSEARCH_TRANSPORT_PORT: 9403
TEST_OPENSEARCH_PORT: 9400
OSD_SNAPSHOT_SKIP_VERIFY_CHECKSUM: true
CHROMEDRIVER_VERSION: '100.0'

jobs:
build-lint-test:
# 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 [email protected]

# - 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 [email protected]

# # 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:
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 [email protected]

- 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
name: Build min artifacts
strategy:
matrix:
group: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]
group: [ 'linux', 'linux-arm' ]
steps:
- run: echo Running functional tests for ciGroup${{ matrix.group }}
- run: echo Build min artifact for {{ matrix.group }}

- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -84,19 +127,52 @@ jobs:

# github virtual env is the latest chrome
- name: Setup chromedriver
run: yarn add --dev chromedriver@100.0.0
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 }}
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 [email protected]

# # 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 }}