From 2c8ff154548cdd5bb3bd9aa835392e6bc7426ee1 Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Tue, 10 Dec 2024 11:10:23 +0100 Subject: [PATCH] gha: split lint & unit tests stages Issue: CLDSRV-594 --- .github/workflows/tests.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index c7bd42a221..7e505a70c0 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -70,7 +70,7 @@ env: # https://github.com/git-lfs/git-lfs/issues/5749 GIT_CLONE_PROTECTION_ACTIVE: 'false' jobs: - linting-coverage: + lint: runs-on: ubuntu-latest steps: - name: Checkout @@ -98,6 +98,21 @@ jobs: run: flake8 $(git ls-files "*.py") - name: Lint Yaml run: yamllint -c yamllint.yml $(git ls-files "*.yml") + + unit-tests: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '16' + cache: yarn + - name: install typescript + shell: bash + run: yarn global add typescript@4.9.5 + - name: install dependencies + run: yarn install --frozen-lockfile --network-concurrency 1 - name: Unit Coverage run: | set -ex