chore: github actions
This commit is contained in:
parent
9bec565cc1
commit
7ca2f1bd0e
3 changed files with 41 additions and 0 deletions
20
.github/workflows/lint.yml
vendored
Normal file
20
.github/workflows/lint.yml
vendored
Normal 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
20
.github/workflows/tsc.yml
vendored
Normal 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
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue