Skip to content

Commit

Permalink
ci: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
amir78729 committed Jul 26, 2024
1 parent 1811617 commit 7f2eafb
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/deploy-storybook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,36 @@ jobs:
with:
path: storybook-static

deploy:
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
with:
version: 9
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Restore cache
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm install
- name: Run Tests
run: pnpm test

deploy:
needs: test
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit 7f2eafb

Please sign in to comment.