Fix stack testobservability v7 (#13861) #4
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Test | |
on: | |
push: | |
branches: | |
- main | |
- v7 | |
pull_request: | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x, 16.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Upgrade npm | |
run: npm install -g npm@7 | |
- name: Install Dependencies | |
run: npm ci | |
- name: Bootstrap Packages | |
run: npm run setup-full | |
- name: Dependency Check | |
if: ${{ matrix.node-version == '16.x' }} | |
run: npm run test:depcheck | |
- name: Lint / Typings / Unit / Smoke Tests | |
run: ./node_modules/.bin/run-s test:eslint test:typings test:coverage test:smoke | |
e2e-windows: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Install Dependencies | |
run: npm ci | |
- name: Bootstrap Packages | |
run: npm run setup-full | |
- name: Lint / Dependencies / Unit / Smoke Tests | |
run: npm run test | |
- name: E2E Protocol Tests | |
uses: nick-invision/retry@v2 | |
with: | |
timeout_minutes: 20 | |
max_attempts: 3 | |
command: npm run test:e2e | |
- name: E2E Edge Launch Tests | |
uses: nick-invision/retry@v2 | |
with: | |
timeout_minutes: 20 | |
max_attempts: 3 | |
command: npm run test:e2e:edge | |
e2e-mac: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Install Dependencies | |
run: npm ci | |
- name: Bootstrap Packages | |
run: npm run setup-full | |
- name: E2E Protocol Tests | |
uses: nick-invision/retry@v2 | |
with: | |
timeout_minutes: 20 | |
max_attempts: 3 | |
command: npm run test:e2e | |
# Setting up Firefox is currently not possible | |
# see https://github.com/browser-actions/setup-firefox/issues/233 | |
# | |
# - name: Setup Firefox | |
# uses: browser-actions/setup-firefox@latest | |
# with: | |
# firefox-version: latest-devedition | |
# - run: | | |
# export FIREFOX_BINARY=$(which firefox) | |
# echo "FIREFOX_BINARY=$FIREFOX_BINARY" >> $GITHUB_ENV | |
# - run: echo "Run Firefox tests using $FIREFOX_BINARY" | |
# - name: E2E Firefox Launch Tests | |
# run: npm run test:e2e:firefox | |
- name: E2E Connection Test | |
run: npm run test:e2e:cloud | |
if: github.ref == 'refs/heads/main' | |
env: | |
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}} | |
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}} | |
- name: E2E Connection Test w/ Params | |
run: npm run test:e2e:cloud -- --user $SAUCE_USERNAME_PARAM --key $SAUCE_ACCESS_KEY_PARAM | |
if: github.ref == 'refs/heads/main' | |
env: | |
SAUCE_USERNAME_PARAM: ${{secrets.SAUCE_USERNAME}} | |
SAUCE_ACCESS_KEY_PARAM: ${{secrets.SAUCE_ACCESS_KEY}} |