Skip to content

Commit

Permalink
Merge pull request #5 from iOdiO89/#3-Chore-Workflow
Browse files Browse the repository at this point in the history
chore: react build test workflow 생성
  • Loading branch information
iOdiO89 authored Jul 23, 2024
2 parents 10ffe8d + 12c8241 commit 757624c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/buildTest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: React Build Test

on:
pull_request:
branches:
- develop

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 21

- name: Cache yarn
uses: actions/cache@v4
id: yarn-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

# cache hit 못하면 패키지 설치
- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install

- name: Run build test
run: yarn build

0 comments on commit 757624c

Please sign in to comment.