Skip to content

Commit

Permalink
init : 깃허브 이슈 빌드 테스트 코드 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
minjeoong committed Jan 8, 2025
1 parent 7bb9c7d commit af00b00
Showing 1 changed file with 19 additions and 25 deletions.
44 changes: 19 additions & 25 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI
name: Build Test

on:
push:
Expand All @@ -13,28 +13,22 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install

- name: Build project
run: pnpm build --if-present

- name: Run tests
run: pnpm test
- uses: actions/checkout@v3

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

- name: Install pnpm
run: |
npm install -g pnpm
echo "PNPM PATH: $(which pnpm)"
pnpm --version
- name: Install dependencies
run: pnpm install

- name: Run build
run: pnpm build

0 comments on commit af00b00

Please sign in to comment.