Skip to content

Commit

Permalink
chore: splited unit test and cypress in two actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dipankarmaikap committed Dec 5, 2024
1 parent 680a1ed commit 3d3d645
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/cypress-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: End-to-end tests
on: push
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cypress run
uses: cypress-io/github-action@v6
13 changes: 2 additions & 11 deletions .github/workflows/test.yml → .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run tests
name: Unit tests

on: [push]

Expand All @@ -24,16 +24,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: pnpm

- name: Cache Cypress binary
uses: actions/cache@v4
with:
path: ~/.cache/Cypress
key: cypress-${{ runner.os }}-cypress-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Install dependencies
run: pnpm install
- name: Build package
run: pnpm build
- name: Run test
run: pnpm run test
run: pnpm test:unit
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@
"publishConfig": {
"access": "public"
}
}
}

0 comments on commit 3d3d645

Please sign in to comment.