From 4ae2c5b4cdbc2683f24df6cfc5fae9ec9ce8764d Mon Sep 17 00:00:00 2001 From: Won-hee Cho <89635107+wcho21@users.noreply.github.com> Date: Thu, 21 Dec 2023 11:37:52 +0900 Subject: [PATCH 1/3] automate testing (#32) --- .github/workflows/test.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..82f9905 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +name: Test + +on: + workflow_dispatch: + push: + branches: [main, dev] + +jobs: + test: + runs-on: ubuntu-20.04 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + + + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + + - name: Setup node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + + + - name: Run test + run: pnpm test + + - name: Check if buildable + run: pnpm tsc --noEmit From 373226949d8bf93c5c482a2864d4ca6f7f760247 Mon Sep 17 00:00:00 2001 From: Won-hee Cho <89635107+wcho21@users.noreply.github.com> Date: Thu, 21 Dec 2023 11:52:39 +0900 Subject: [PATCH 2/3] fix branch name typo (#33) --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 82f9905..e05c01f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,7 @@ name: Test on: workflow_dispatch: push: - branches: [main, dev] + branches: [master, dev] jobs: test: From 47ffe0a0a20fa2d2d8d1a63d7d8e0b1adc77291a Mon Sep 17 00:00:00 2001 From: Won-hee Cho <89635107+wcho21@users.noreply.github.com> Date: Thu, 21 Dec 2023 11:58:15 +0900 Subject: [PATCH 3/3] fix trigger (#34) --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e05c01f..477c42f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: Test on: workflow_dispatch: - push: + pull_request: branches: [master, dev] jobs: