From 29b71cb6821279ba2e799ce37a7ad62c040bd8c2 Mon Sep 17 00:00:00 2001 From: fcaps <48691346+fcaps@users.noreply.github.com> Date: Wed, 29 Nov 2023 02:45:23 +0100 Subject: [PATCH] split actions, so squashed commits are uploaded to codecov (#502) --- .../{code-quality.yml => code-linter.yml} | 11 ++++------- .github/workflows/code-test.yml | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 7 deletions(-) rename .github/workflows/{code-quality.yml => code-linter.yml} (52%) create mode 100644 .github/workflows/code-test.yml diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-linter.yml similarity index 52% rename from .github/workflows/code-quality.yml rename to .github/workflows/code-linter.yml index 5c00b1db..10023992 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-linter.yml @@ -1,10 +1,10 @@ -name: Website static checks +name: ESLint on: [pull_request] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: checks: @@ -15,8 +15,5 @@ jobs: with: node-version: '20' cache: 'yarn' - - run: yarn install - - run: npx webpack + - run: yarn install --frozen-lockfile - run: yarn run lint - - run: yarn run test - - uses: codecov/codecov-action@v3 diff --git a/.github/workflows/code-test.yml b/.github/workflows/code-test.yml new file mode 100644 index 00000000..cfcd49bf --- /dev/null +++ b/.github/workflows/code-test.yml @@ -0,0 +1,18 @@ +name: Unit Tests + +on: [ push, pull_request ] + +jobs: + checks: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: '20' + cache: 'yarn' + - run: yarn install --frozen-lockfile + - run: npx webpack + - run: yarn run test + - uses: codecov/codecov-action@v3 +