diff --git a/.github/workflows/pull-request-workflow.yaml b/.github/workflows/pull-request-workflow.yaml index 4ce9151..63f38a6 100644 --- a/.github/workflows/pull-request-workflow.yaml +++ b/.github/workflows/pull-request-workflow.yaml @@ -2,17 +2,35 @@ name: test-workflow run-name: Veles test checks on: push: - branches: - - main + branches: + - main pull_request: jobs: - run-tests: + typecheck: + name: typecheck runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: "22" - - run: npm install - - run: npm run test + node-version: "24" + cache: "npm" + - name: Install dependencies + run: npm ci + - name: TypeScript compile check + run: npm run ts-compile-check + + tests: + name: tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "24" + cache: "npm" + - name: Install dependencies + run: npm ci + - name: Run tests + run: npm run test