From c91fd909a695815e57c7f49b09a8a5b1b58b7008 Mon Sep 17 00:00:00 2001 From: Suhjeong Kim Date: Thu, 1 Feb 2024 10:10:51 +0900 Subject: [PATCH 1/4] Create main.yml --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..89ed789 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: + - github-action-test + pull_request: + branches: + - github-action-test + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./backend + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 20.9.x + + - name: Install dependencies + run: npm install + + - name: Run Tests + run: npm test + From 104305e626b21f0981c659937b63157d67d2e414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A1=B0=EC=98=81=EC=9A=B0?= <66576231+choyoungwoo9@users.noreply.github.com> Date: Thu, 1 Feb 2024 10:12:32 +0900 Subject: [PATCH 2/4] Create backend.yml --- .github/workflows/backend.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/backend.yml diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml new file mode 100644 index 0000000..69c0a6b --- /dev/null +++ b/.github/workflows/backend.yml @@ -0,0 +1,25 @@ +name: Github Actions BackEnd Test + +run-name: ${{ github.actor }} is learning GitHub Actions + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Install dependencies + run: npm install + working-directory: ./backend + + - name: Run tests + run: npm test + working-directory: ./backend From cb19f8150a389939ebe35fa713e6d35219964089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A1=B0=EC=98=81=EC=9A=B0?= <66576231+choyoungwoo9@users.noreply.github.com> Date: Thu, 1 Feb 2024 10:24:32 +0900 Subject: [PATCH 3/4] Update backend.yml --- .github/workflows/backend.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 69c0a6b..51ce580 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -20,6 +20,6 @@ jobs: run: npm install working-directory: ./backend - - name: Run tests - run: npm test + - name: Run build + run: npm build working-directory: ./backend From 3bd1e3b8073ad8ca34276ae9daf6c04b4a4c47fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A1=B0=EC=98=81=EC=9A=B0?= <66576231+choyoungwoo9@users.noreply.github.com> Date: Thu, 1 Feb 2024 10:28:16 +0900 Subject: [PATCH 4/4] Update backend.yml --- .github/workflows/backend.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 51ce580..dde8eec 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -21,5 +21,5 @@ jobs: working-directory: ./backend - name: Run build - run: npm build + run: npm run build working-directory: ./backend