diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-linter.yml similarity index 58% rename from .github/workflows/code-quality.yml rename to .github/workflows/code-linter.yml index 5c00b1db..0d07a13f 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: @@ -16,7 +16,4 @@ jobs: node-version: '20' cache: 'yarn' - run: yarn install - - run: npx webpack - 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..24c55374 --- /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 + - run: npx webpack + - run: yarn run test + - uses: codecov/codecov-action@v3 +