2020-04-14 16:38:09 -04:00
|
|
|
name: Frontend
|
|
|
|
|
2021-01-07 03:47:00 -05:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- "dependabot/**/docs/**"
|
|
|
|
- "dependabot/**/cypress-base/**"
|
|
|
|
pull_request:
|
2020-04-14 16:38:09 -04:00
|
|
|
|
|
|
|
jobs:
|
2020-09-10 16:12:00 -04:00
|
|
|
build:
|
2021-01-15 19:14:33 -05:00
|
|
|
runs-on: ubuntu-20.04
|
2020-04-14 16:38:09 -04:00
|
|
|
steps:
|
2020-12-08 18:27:08 -05:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
2021-01-04 07:16:07 -05:00
|
|
|
uses: ./.github/actions/cached-dependencies
|
2020-12-08 18:27:08 -05:00
|
|
|
with:
|
|
|
|
run: npm-install
|
|
|
|
- name: lint
|
|
|
|
working-directory: ./superset-frontend
|
|
|
|
run: |
|
|
|
|
npm run lint
|
|
|
|
npm run prettier-check
|
|
|
|
- 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
|