Skip to content

Commit

Permalink
Move more stuff from BK to GHA (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Apr 21, 2022
1 parent d7ad6cd commit b21c720
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 5 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/static_analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Static Analysis
on:
pull_request: { }
push:
branches: [ develop, master ]
jobs:
ts_lint:
name: "Typescript Syntax Check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
cache: 'yarn'

# Does not need branch matching as only analyses this layer
- name: Install Deps
run: "yarn install --pure-lockfile"

- name: Typecheck
run: "yarn run lint:types"

i18n_lint:
name: "i18n Diff Check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
cache: 'yarn'

# Does not need branch matching as only analyses this layer
- name: Install Deps
run: "yarn install --pure-lockfile"

- name: i18n Check
run: "yarn run diff-i18n"

js_lint:
name: "ESLint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
cache: 'yarn'

# Does not need branch matching as only analyses this layer
- name: Install Deps
run: "yarn install --pure-lockfile"

- name: Run Linter
run: "yarn run lint:js"
5 changes: 0 additions & 5 deletions scripts/ci/install-deps.sh

This file was deleted.

0 comments on commit b21c720

Please sign in to comment.