Vision Data Analysis / Data Balance E2E Tests + Refactor #6197
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more info see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js CI | |
env: | |
folder_to_upload: dist/apps/dashboard | |
blob_account: responsibleai | |
blob_container: pullrequest | |
blob_path: ${{ github.event.pull_request.head.repo.full_name }}/${{ github.head_ref }} | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
ci-typescript: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x, 14.x, 16.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install yarn | |
run: npm install yarn -g | |
- name: CI | |
run: yarn ci | |
- name: Upload unit test code coverage | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: unit-test-coverage-${{ matrix.node-version }} | |
path: coverage | |
- name: Upload e2e test screen shot | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: e2e-screen-shot-${{ matrix.node-version }} | |
path: dist/cypress | |
- name: Upload yarn error | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: yarn-error.log-${{ matrix.node-version }} | |
path: yarn-error.log |