Skip to content

Commit

Permalink
ci: split JavaScript and TypeScript linters
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinnot committed Nov 8, 2019
1 parent 18901d1 commit d82c8e3
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
run: npm ci --ignore-scripts --no-audit --prefer-offline --progress=false
- name: Format
run: npm run format
lint:
name: Lint
lint-javascript:
name: Lint JavaScript
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -64,7 +64,31 @@ jobs:
-type d -name "node_modules" -prune -o \
-type f -iregex '.*.ts' \
-exec ./scripts/ci/set_mtime_to_md5.sh {} \;
npm run lint
npm run lint:js
lint-typescript:
name: Lint TypeScript declaration files
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Cache npm dependencies
uses: actions/cache@v1
with:
key: npm-${{ hashFiles('**/package-lock.json') }}
path: ~/.npm
restore-keys: |
npm-
- name: Install dependencies
run: npm ci --ignore-scripts --no-audit --prefer-offline --progress=false
- name: Lint
run: |
npm run lint:ts
test:
name: Test
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit d82c8e3

Please sign in to comment.