Skip to content

Commit

Permalink
chore: ci workflow 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
DongjaJ committed Jan 10, 2025
1 parent 0ee31e5 commit f9c0961
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/actions/pnpm-setup-node/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: setup pnpm & node
description: setup pnpm & node
runs:
using: composite
steps:
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
node-version-file: '.nvmrc'
36 changes: 36 additions & 0 deletions .github/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
env:
CI: ${{ vars.CI }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Run Tests
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: pnpm-setup-node
uses: ./.github/actions/pnpm-setup-node

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

- name: Run Lint
run: pnpm lint

- name: Run Tests
run: pnpm test

- name: Run Build
run: pnpm build

0 comments on commit f9c0961

Please sign in to comment.