From 06c2cc82a2404919ad7950ca9cab45a0d858b444 Mon Sep 17 00:00:00 2001 From: hjy0951 Date: Tue, 27 Aug 2024 17:02:25 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=EB=B9=8C=EB=93=9C=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EC=95=A1=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build-test.yml diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 00000000..8076e79b --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,29 @@ +name: PR Built Test +on: + pull_request: + types: [opened, edited, reopened, ready_for_review] + +jobs: + Build-Test: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Cache dependencies + id: cache + uses: actions/cache@v3 + with: + path: '**/node_modules' + key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}-build + restore-keys: | + ${{ runner.os }}-node- + + - name: Install dependencies + if: steps.cache.outputs.cache-hit != 'true' + run: pnpm install + + - name: Build project + run: pnpm build From 9cd924ed8ce031ecc12f5165a65c88eb598cf135 Mon Sep 17 00:00:00 2001 From: hjy0951 Date: Tue, 27 Aug 2024 17:05:46 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20pnpm=20=EC=82=AC=EC=9A=A9=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 8076e79b..9c361ee5 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -7,6 +7,10 @@ jobs: Build-Test: runs-on: ubuntu-latest steps: + - uses: pnpm/action-setup@v4 + with: + version: 8 + - name: Checkout repository uses: actions/checkout@v3 with: