diff --git a/.github/workflows/code-quality.yml b/.github/workflows/eslint.yml similarity index 85% rename from .github/workflows/code-quality.yml rename to .github/workflows/eslint.yml index b3c2566..9eb9813 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/eslint.yml @@ -1,4 +1,4 @@ -name: Code Quality Check +name: ESLint Check on: push: @@ -25,6 +25,3 @@ jobs: - name: Run ESLint run: yarn lint - - - name: Run tests - run: yarn test diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 0000000..5c04b0d --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,27 @@ +name: Unit Tests + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'yarn' + + - name: Install dependencies + run: yarn install + + - name: Run tests + run: yarn test