2020-04-14 16:38:09 -04:00
|
|
|
name: Frontend
|
|
|
|
|
2020-04-15 00:16:16 -04:00
|
|
|
on: [push, pull_request]
|
2020-04-14 16:38:09 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
frontend-build:
|
|
|
|
name: build
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
2020-04-17 02:35:01 -04:00
|
|
|
uses: apache-superset/cached-dependencies@adc6f73
|
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
|