Files
superset2/.github/workflows/superset-frontend.yml
Jesse Yang d8de540e0c [Build] Collect frontend code coverage from Cypress tests (#9555)
* build: collect code coverage from Cypress

Collect frontend code coverage reports from Cypress tests and add
proper tagging for all tests.

* Fix bash script lint error from shellcheck

* Revert Cypress to 4.3.0 to see if it fixes a failing test
2020-04-16 23:35:01 -07:00

28 lines
671 B
YAML

name: Frontend
on: [push, pull_request]
jobs:
frontend-build:
name: build
runs-on: ubuntu-18.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
uses: apache-superset/cached-dependencies@adc6f73
with:
run: npm-install
- name: eslint
working-directory: ./superset-frontend
run: |
npm run lint
- name: unit tests
working-directory: ./superset-frontend
run: |
npm run test -- --coverage
- name: Upload code coverage
working-directory: ./superset-frontend
run: |
bash <(curl -s https://codecov.io/bash) -cF javascript