From b21c720510f2ec1afdcdb63404b7bbad7252d6fc Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 21 Apr 2022 15:16:18 +0100 Subject: [PATCH] Move more stuff from BK to GHA (#342) --- .github/workflows/static_analysis.yaml | 56 ++++++++++++++++++++++++++ scripts/ci/install-deps.sh | 5 --- 2 files changed, 56 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/static_analysis.yaml delete mode 100755 scripts/ci/install-deps.sh diff --git a/.github/workflows/static_analysis.yaml b/.github/workflows/static_analysis.yaml new file mode 100644 index 0000000..f79a1a5 --- /dev/null +++ b/.github/workflows/static_analysis.yaml @@ -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" diff --git a/scripts/ci/install-deps.sh b/scripts/ci/install-deps.sh deleted file mode 100755 index 09c8fcb..0000000 --- a/scripts/ci/install-deps.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -set -ex - -yarn install --pure-lockfile $@