From cbe16b459131ba204b96d9ce340eeb27a9d826c6 Mon Sep 17 00:00:00 2001 From: Daria Domina Date: Sat, 15 Nov 2025 22:38:52 +0100 Subject: [PATCH] add the gate --- .github/actions/setup-project/action.yaml | 15 +++++++++++++++ .github/workflows/run-compile-check.yaml | 19 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/actions/setup-project/action.yaml create mode 100644 .github/workflows/run-compile-check.yaml diff --git a/.github/actions/setup-project/action.yaml b/.github/actions/setup-project/action.yaml new file mode 100644 index 0000000..84a9303 --- /dev/null +++ b/.github/actions/setup-project/action.yaml @@ -0,0 +1,15 @@ +name: 'Setup project' +description: 'Install Node.js, dependencies' + +runs: + using: 'composite' + steps: + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'yarn' + + - name: Install dependencies + run: yarn install + shell: bash diff --git a/.github/workflows/run-compile-check.yaml b/.github/workflows/run-compile-check.yaml new file mode 100644 index 0000000..ac0d354 --- /dev/null +++ b/.github/workflows/run-compile-check.yaml @@ -0,0 +1,19 @@ +name: Check if code can be compiled + +on: + workflow_call: + workflow_dispatch: + +jobs: + run-compile-check: + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up project + uses: ./.github/actions/setup-project + + - name: Run compile check + run: yarn tsc --noEmit