From b968f52afe3d2f93d7ad411cc72c8a9efe4742de Mon Sep 17 00:00:00 2001 From: kevkevinpal Date: Tue, 31 Oct 2023 19:11:07 -0500 Subject: [PATCH] test: added unit test to their own git action --- .github/workflows/test.yml | 3 --- .github/workflows/unit-test.yml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/unit-test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0603a30ea..61eac767b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,9 +19,6 @@ jobs: - name: Install run: yarn --immutable - - name: Unit tests - run: yarn test - - name: Cypress run # Uses the official Cypress GitHub action https://github.com/cypress-io/github-action uses: cypress-io/github-action@v5 diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml new file mode 100644 index 000000000..03d84649e --- /dev/null +++ b/.github/workflows/unit-test.yml @@ -0,0 +1,23 @@ +name: Unit tests +on: + pull_request: + branches: + - master +jobs: + cypress-run: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + cache: 'yarn' + + - name: Install + run: yarn --immutable + + - name: Unit tests + run: yarn test