Skip to content

Commit

Permalink
test: added unit test to their own git action
Browse files Browse the repository at this point in the history
  • Loading branch information
kevkevinpal committed Nov 1, 2023
1 parent 15cce42 commit b968f52
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b968f52

Please sign in to comment.