Skip to content

Commit

Permalink
Run lint and type-check on pre-commit (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
procot authored May 27, 2020
1 parent 7522191 commit 5e8d9b1
Show file tree
Hide file tree
Showing 5 changed files with 345 additions and 13 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/pr-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: PR checks

on:
pull_request:
branches: [ master ]

jobs:
tslint:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run tslint

type-check:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run type-check
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="./webOSTV/index.d.ts" />
/// <reference path="./webOSTV-dev/index.d.ts" />
import './webOSTV';
import './webOSTV-dev';

export {};
Loading

0 comments on commit 5e8d9b1

Please sign in to comment.