From e11aba9aa155fcbbf476703e245d4c113015f341 Mon Sep 17 00:00:00 2001 From: Giuseppe Scuglia Date: Mon, 16 Dec 2024 15:02:56 +0100 Subject: [PATCH] add GH action --- .github/workflows/static-checks.yml | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/static-checks.yml diff --git a/.github/workflows/static-checks.yml b/.github/workflows/static-checks.yml new file mode 100644 index 00000000..f942e905 --- /dev/null +++ b/.github/workflows/static-checks.yml @@ -0,0 +1,41 @@ +name: Static Checks +on: + workflow_call: +jobs: + setup: + name: Setup Node.js + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v2 + with: + node-version: '22' + + lint: + name: ESLint Check + runs-on: ubuntu-latest + 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 + 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" + steps: + - name: Checkout Repository + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + + - name: Build App + run: npm run build