Skip to content

Commit

Permalink
Frontend ci pipeline 🚩
Browse files Browse the repository at this point in the history
  • Loading branch information
HeeManSu committed Jul 8, 2024
1 parent bbfada7 commit 44f7c6c
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci-front.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Frontend CI pipeline

on:
push:
branches:
- master
paths:
- "mango-frontend/**"
pull_request:
branches:
- master
paths:
- "mango-frontend/**"

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

steps:
- name: Checkout code
uses: actions/checkout@v3

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

- name: Install dependencies
run: npm ci
working-directory: mango-frontend

- name: Lint code
run: npm run lint
working-directory: mango-frontend

- name: Build project
run: npm run build
working-directory: mango-frontend

- name: Run tests
run: npm test
working-directory: mango-frontend

0 comments on commit 44f7c6c

Please sign in to comment.