From 3f2fa461028a9f8198fc0101a1c6383873c5d5e2 Mon Sep 17 00:00:00 2001 From: sasaki135 Date: Mon, 27 Feb 2023 15:25:46 +0900 Subject: [PATCH 1/7] =?UTF-8?q?=E3=83=AF=E3=83=BC=E3=82=AF=E3=83=95?= =?UTF-8?q?=E3=83=AD=E3=83=BC=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/add_wf.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/add_wf.yml diff --git a/.github/workflows/add_wf.yml b/.github/workflows/add_wf.yml new file mode 100644 index 0000000..de8702e --- /dev/null +++ b/.github/workflows/add_wf.yml @@ -0,0 +1,25 @@ +name: Run unit test + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + tests: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18.14 + - name: Install packages + run: npm install + working-directory: ./nodejs + - name: Run test + run: npm test run + working-directory: ./nodejs From 2c3bf1db0dae511138f00b9805203204aceba234 Mon Sep 17 00:00:00 2001 From: sasaki135 Date: Mon, 27 Feb 2023 15:35:01 +0900 Subject: [PATCH 2/7] =?UTF-8?q?test=E3=82=B3=E3=83=BC=E3=83=89=E3=82=92?= =?UTF-8?q?=E5=A4=B1=E6=95=97=E3=81=95=E3=81=9B=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodejs/add.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodejs/add.test.js b/nodejs/add.test.js index 191486f..9ef9916 100644 --- a/nodejs/add.test.js +++ b/nodejs/add.test.js @@ -1,5 +1,5 @@ -import { add } from './add'; +import { add } from "./add"; -test('add test', () => { - expect(add(10, 15)).toBe(25) -}) \ No newline at end of file +test("add test", () => { + expect(add(10, 15)).toBe(50); +}); From 07e32f7af40d13e288864008904686ae44f84b9d Mon Sep 17 00:00:00 2001 From: sasaki135 Date: Mon, 27 Feb 2023 15:37:14 +0900 Subject: [PATCH 3/7] =?UTF-8?q?test=E3=82=B3=E3=83=BC=E3=83=89=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodejs/add.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodejs/add.test.js b/nodejs/add.test.js index 9ef9916..c3cee14 100644 --- a/nodejs/add.test.js +++ b/nodejs/add.test.js @@ -1,5 +1,5 @@ import { add } from "./add"; test("add test", () => { - expect(add(10, 15)).toBe(50); + expect(add(10, 15)).toBe(25); }); From c8fc294083bdc37207c829aac2388c8259addd22 Mon Sep 17 00:00:00 2001 From: sasaki135 Date: Mon, 27 Feb 2023 15:48:42 +0900 Subject: [PATCH 4/7] =?UTF-8?q?cache=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/add_wf.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/add_wf.yml b/.github/workflows/add_wf.yml index de8702e..68f5b03 100644 --- a/.github/workflows/add_wf.yml +++ b/.github/workflows/add_wf.yml @@ -17,6 +17,10 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18.14 + - uses: actions/cache@v3 + with: + path: ./nodejs.node_modules + key: nodejs-${{ hashFiles('./nodejs/package-lock.json') }} - name: Install packages run: npm install working-directory: ./nodejs From 2648a8b8ec87d5bfbefa6c028834d975fdbd3225 Mon Sep 17 00:00:00 2001 From: sasaki135 Date: Mon, 27 Feb 2023 15:55:22 +0900 Subject: [PATCH 5/7] =?UTF-8?q?cache=E3=83=86=E3=82=B9=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodejs/test.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 nodejs/test.txt diff --git a/nodejs/test.txt b/nodejs/test.txt new file mode 100644 index 0000000..e69de29 From 24ab33cdc6334cb30408b48f80987e56863f26c6 Mon Sep 17 00:00:00 2001 From: sasaki135 Date: Mon, 27 Feb 2023 16:03:39 +0900 Subject: [PATCH 6/7] =?UTF-8?q?=E3=83=91=E3=82=B9=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/add_wf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add_wf.yml b/.github/workflows/add_wf.yml index 68f5b03..049e428 100644 --- a/.github/workflows/add_wf.yml +++ b/.github/workflows/add_wf.yml @@ -19,7 +19,7 @@ jobs: node-version: 18.14 - uses: actions/cache@v3 with: - path: ./nodejs.node_modules + path: ./nodejs/node_modules key: nodejs-${{ hashFiles('./nodejs/package-lock.json') }} - name: Install packages run: npm install From 4b055ac90296df0c64e2618600cef4200aaf36ca Mon Sep 17 00:00:00 2001 From: sasaki135 Date: Mon, 27 Feb 2023 16:10:50 +0900 Subject: [PATCH 7/7] =?UTF-8?q?cache=E3=83=86=E3=82=B9=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodejs/test.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 nodejs/test.txt diff --git a/nodejs/test.txt b/nodejs/test.txt deleted file mode 100644 index e69de29..0000000