diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..8c85665 --- /dev/null +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/tsc.yml b/.github/workflows/tsc.yml new file mode 100644 index 0000000..8fffa24 --- /dev/null +++ b/.github/workflows/tsc.yml @@ -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 diff --git a/package.json b/package.json index d03af1c..6abacbb 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "scripts": { "prebuild": "yarn lint", "build": "webpack --mode production", + "tsc": "tsc", "lint": "eslint src --ext .ts", "lint:fix": "eslint src --ext .ts --fix" },