-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.13 KB
/
static-analyzer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Static Analyzer
on: [pull_request]
jobs:
static-analyzer:
runs-on: ubuntu-latest
name: Static Analyzer
env:
NODE_OPTIONS: --max-old-space-size=6144
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- run: yarn
- uses: reviewdog/action-eslint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
eslint_flags: 'src/**/*.{vue,ts,js,tsx,jsx}'
- uses: reviewdog/action-setup@v1
with:
reviewdog_version: v0.14.1
- run: ${GITHUB_WORKSPACE}/.github/reviewdog-tsc.sh
shell: bash
env:
INPUT_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUT_WORKDIR: '.'
INPUT_LEVEL: 'error'
INPUT_REPORTER: 'github-pr-review'
INPUT_FILTER_MODE: 'added'
INPUT_FAIL_ON_ERROR: 'false'
INPUT_REVIEWDOG_FLAGS: ''
INPUT_TOOL_NAME: 'vue-tsc'
INPUT_TSC_FLAGS: ''
- run: yarn typecheck
continue-on-error: true # TODO: fix type errors