From 4a812d52fe01afd0ea8bcf590d2d8854bc2ea3ff Mon Sep 17 00:00:00 2001 From: Igor Oleinikov Date: Wed, 16 Oct 2019 18:12:59 -0700 Subject: [PATCH 1/2] Add tsc action --- .github/workflows/tsc.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/tsc.yml diff --git a/.github/workflows/tsc.yml b/.github/workflows/tsc.yml new file mode 100644 index 0000000..112c20c --- /dev/null +++ b/.github/workflows/tsc.yml @@ -0,0 +1,22 @@ +on: + push: + pull_request: + +jobs: + tsc: + name: tsc + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: install node v12 + uses: actions/setup-node@v1 + with: + node-version: 12 + - name: yarn install + run: yarn install + - name: tsc + uses: icrawl/action-tsc@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + job-name: tsc From 6a51b389db8cf08ab3999ef04120c7b6fe38ac8b Mon Sep 17 00:00:00 2001 From: Igor Oleinikov Date: Wed, 16 Oct 2019 18:15:20 -0700 Subject: [PATCH 2/2] Add sample error --- src/minify.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/minify.ts b/src/minify.ts index 64927ea..7c6b881 100644 --- a/src/minify.ts +++ b/src/minify.ts @@ -10,6 +10,8 @@ type StateMachine = { } }; +let a: number = 'a'; // sample error + function isSymbol(ch: string) { return ch == ';' || ch == ':' || ch == '{' || ch == '}' || ch == ','; }