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 +