Skip to content

Commit

Permalink
ci: main, dev 브랜치에 push할 때 자동으로 테스트를 수행하는 workflow 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
minjungw00 committed Nov 10, 2024
1 parent 81026d4 commit d5bd75a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Lint and Test

on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
lint-and-test:
name: Lint and Test
runs-on: ubuntu-latest

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

# Install pnpm
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: true

# Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"

# Run lint
- name: Run lint
run: pnpm eslint .

# Run tests
- name: Run tests
run: pnpm test

0 comments on commit d5bd75a

Please sign in to comment.