Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
arealmaas committed Oct 30, 2024
1 parent 67fb33c commit 6fa7257
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
File renamed without changes.
45 changes: 45 additions & 0 deletions .github/workflows/ci-cd-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI/CD Pull Request

on:
pull_request:
branches: [ main ]
types: [opened, synchronize, reopened]

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: '9.9.0'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm biome check ./lib

- name: Type check
run: pnpm typecheck

- name: Build
run: pnpm build

- name: Build Storybook
run: pnpm build-storybook

# Cache Storybook build for potential deployment or other jobs
- name: Cache Storybook build
uses: actions/cache@v4
with:
path: storybook-static
key: storybook-${{ github.sha }}

0 comments on commit 6fa7257

Please sign in to comment.