chore: github actions

This commit is contained in:
iCrawl 2020-01-14 11:56:50 +01:00
parent 9bec565cc1
commit 7ca2f1bd0e
No known key found for this signature in database
GPG key ID: E41A6DB922EC2CFE
3 changed files with 41 additions and 0 deletions

20
.github/workflows/lint.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Lint
on: [push, pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node v12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: yarn install
- name: Run Lint
run: yarn lint

20
.github/workflows/tsc.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: TSC
on: [push, pull_request]
jobs:
tsc:
name: TSC
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node v12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: yarn install
- name: Run TSC
run: yarn tsc

View file

@ -20,6 +20,7 @@
"scripts": { "scripts": {
"prebuild": "yarn lint", "prebuild": "yarn lint",
"build": "webpack --mode production", "build": "webpack --mode production",
"tsc": "tsc",
"lint": "eslint src --ext .ts", "lint": "eslint src --ext .ts",
"lint:fix": "eslint src --ext .ts --fix" "lint:fix": "eslint src --ext .ts --fix"
}, },