From 7ca2f1bd0eb3407669be84de0897c51623aa6bea Mon Sep 17 00:00:00 2001 From: iCrawl Date: Tue, 14 Jan 2020 11:56:50 +0100 Subject: [PATCH] chore: github actions --- .github/workflows/lint.yml | 20 ++++++++++++++++++++ .github/workflows/tsc.yml | 20 ++++++++++++++++++++ package.json | 1 + 3 files changed, 41 insertions(+) create mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/tsc.yml 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" },