2020-04-14 16:38:09 -04:00
|
|
|
name: Frontend
|
|
|
|
|
2020-10-06 16:51:40 -04:00
|
|
|
on: [push, pull_request]
|
2020-04-14 16:38:09 -04:00
|
|
|
|
|
|
|
jobs:
|
2020-09-10 16:12:00 -04:00
|
|
|
build:
|
2020-04-14 16:38:09 -04:00
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
2020-07-31 01:28:56 -04:00
|
|
|
uses: apache-superset/cached-dependencies@b90713b
|
2020-04-14 16:38:09 -04:00
|
|
|
with:
|
|
|
|
run: npm-install
|
2020-04-20 18:06:33 -04:00
|
|
|
- name: lint
|
2020-04-14 16:38:09 -04:00
|
|
|
working-directory: ./superset-frontend
|
|
|
|
run: |
|
|
|
|
npm run lint
|
2020-04-20 18:06:33 -04:00
|
|
|
npm run prettier-check
|
2020-04-14 16:38:09 -04:00
|
|
|
- name: unit tests
|
|
|
|
working-directory: ./superset-frontend
|
|
|
|
run: |
|
|
|
|
npm run test -- --coverage
|
|
|
|
- name: Upload code coverage
|
|
|
|
working-directory: ./superset-frontend
|
|
|
|
run: |
|
2020-04-17 02:35:01 -04:00
|
|
|
bash <(curl -s https://codecov.io/bash) -cF javascript
|