-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,47 @@ | ||
name: Static Checks | ||
on: | ||
workflow_call: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- "**" | ||
jobs: | ||
setup: | ||
name: Setup Node.js | ||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v2 | ||
with: | ||
node-version: '22' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@23755b521f87533c8ed7f8fb13674f9021579e34 # v4 | ||
with: | ||
node-version: 22 | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
lint: | ||
name: ESLint Check | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
|
||
- name: Run linter | ||
run: npm run lint | ||
|
||
tsc: | ||
name: TS Types Check | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
|
||
- name: Run Tsc | ||
run: npm run type-check | ||
|
||
build: | ||
name: Build App Check | ||
runs-on: ubuntu-latest | ||
env: | ||
NODE_OPTIONS: "--max_old_space_size=4096" | ||
needs: setup | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
|
||
- name: Build App | ||
run: npm run build |