af17fb27b8
* Attempt to re-structure workflows to be more generic & reusable * Iterate for reusable workflows can't call each other * don't pass pullrequest params if no prnumber * Comments * Fix reusable workflow call * Pass pr_id properly * Fix run condition for prdetails job * Fix needs dependency * Stash work so far * Fix copypasta * Update * Define outputs from pr_details.yml * Fix output reporting * Fix something or other
57 lines
1.1 KiB
YAML
57 lines
1.1 KiB
YAML
name: Static Analysis
|
|
on:
|
|
pull_request: { }
|
|
push:
|
|
branches: [ develop, master ]
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
ts_lint:
|
|
name: "Typescript Syntax Check"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
cache: 'yarn'
|
|
|
|
- name: Install Deps
|
|
run: "yarn install"
|
|
|
|
- name: Typecheck
|
|
run: "yarn run lint:types"
|
|
|
|
js_lint:
|
|
name: "ESLint"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
cache: 'yarn'
|
|
|
|
- name: Install Deps
|
|
run: "yarn install"
|
|
|
|
- name: Run Linter
|
|
run: "yarn run lint:js"
|
|
|
|
docs:
|
|
name: "JSDoc Checker"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
cache: 'yarn'
|
|
|
|
- name: Install Deps
|
|
run: "yarn install"
|
|
|
|
- name: Generate Docs
|
|
run: "yarn run gendoc"
|