build: Move lint test to separate workflow run (#1960)

This commit is contained in:
Abhinay Omkar 2020-11-16 20:16:01 -05:00 committed by GitHub
parent f81b546d03
commit a40dbc1a17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,16 @@ name: tests
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
run: npm ci --ignore-scripts
run: npm run bootstrap
run: npm run lint
tests:
runs-on: ubuntu-latest
@ -30,11 +40,6 @@ jobs:
- name: Compile component TypeScript
run: npm run build:typescript
# TODO(aomarks) Once b/144957560 is fixed, move lint and format into their
# own workflows or jobs so that they can run in parallel.
- name: Check lint
run: npm run lint
- name: Compile test TypeScript
run: npm run build:tests