[FSSDK-9605] add support for configurable closing event dispatcher #591
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Javascript | |
on: | |
push: | |
branches: [ 4.x.x ] | |
pull_request: | |
branches: [ 4.x.x ] | |
jobs: | |
lint_markdown_files: | |
uses: optimizely/javascript-sdk/.github/workflows/[email protected] | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 12 | |
cache-dependency-path: packages/optimizely-sdk/package-lock.json | |
cache: 'npm' | |
- name: Run linting | |
working-directory: ./packages/optimizely-sdk | |
run: | | |
npm install | |
npm run lint | |
integration_tests: | |
uses: optimizely/javascript-sdk/.github/workflows/[email protected] | |
secrets: | |
CI_USER_TOKEN: ${{ secrets.CI_USER_TOKEN }} | |
TRAVIS_COM_TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }} | |
fullstack_production_suite: | |
uses: optimizely/javascript-sdk/.github/workflows/[email protected] | |
with: | |
FULLSTACK_TEST_REPO: ProdTesting | |
secrets: | |
CI_USER_TOKEN: ${{ secrets.CI_USER_TOKEN }} | |
TRAVIS_COM_TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }} | |
crossbrowser_and_umd_unit_tests: | |
runs-on: ubuntu-latest | |
env: | |
BROWSER_STACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} | |
BROWSER_STACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Move to package | |
run: | | |
cd packages/optimizely-sdk | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 8 | |
cache: 'npm' | |
cache-dependency-path: packages/optimizely-sdk/package-lock.json | |
- name: Cross-browser and umd unit tests | |
working-directory: ./packages/optimizely-sdk | |
run: | | |
npm install | |
npm run test-ci | |
unit_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [ '8', '9', '10', '12', '14', '16', '18' ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node ${{ matrix.node }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'npm' | |
cache-dependency-path: packages/optimizely-sdk/package-lock.json | |
- name: Unit tests | |
working-directory: ./packages/optimizely-sdk | |
run: | | |
npm install | |
npm run coveralls | |
- name: Coveralls Parallel | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: ./packages/optimizely-sdk/coverage/lcov.info | |
flag-name: run-${{ matrix.node }} | |
# This is a parallel build so need this | |
parallel: true | |
base-path: ./packages/optimizely-sdk | |
# As testing against multiple versions need this to | |
# finish the parallel build | |
finish: | |
name: Coveralls coverage | |
needs: unit_tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.github_token }} | |
path-to-lcov: ./packages/optimizely-sdk/coverage/lcov.info | |
parallel-finished: true | |
base-path: ./packages/optimizely-sdk | |
test_sub_packages: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: [ 'packages/utils', 'packages/event-processor', 'packages/logging', 'packages/datafile-manager'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Move to package ${{ matrix.package }} | |
run: | | |
cd ${{ matrix.package }} | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 12 | |
cache: 'npm' | |
cache-dependency-path: ${{ matrix.package }}/package-lock.json | |
- name: Test sub packages | |
working-directory: ./${{ matrix.package }} | |
run: | | |
npm install | |
npm test |