From 4f504f14d23f6c15db4a16ed8876a901ade3bd6c Mon Sep 17 00:00:00 2001 From: Masayuki Morisaki Date: Fri, 13 Nov 2020 09:52:57 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E3=83=93=E3=83=AB=E3=83=89=E3=80=81?= =?UTF-8?q?=E3=83=87=E3=83=97=E3=83=AD=E3=82=A4=E3=82=92=E3=81=99=E3=82=8B?= =?UTF-8?q?workflow=E3=82=92=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflow/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 41 insertions(+) create mode 100644 .github/workflow/ci.yml diff --git a/.github/workflow/ci.yml b/.github/workflow/ci.yml new file mode 100644 index 0000000..640be31 --- /dev/null +++ b/.github/workflow/ci.yml @@ -0,0 +1,40 @@ +name: KukuPad CI + +on: pull_request + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: setup node.jobs + uses: actions/setup-node@v1 + with: + node-version: 15.x + + - name: install package + run: yarn + + - name: eslint + run: yarn lint + + deploy: + if: github.event.pull_request.merged == 'true' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: setup node.jobs + uses: actions/setup-node@v1 + with: + node-version: 15.x + + - name: install package + run: yarn + + - name: build + run: yarn build + + - name: deploy + run: yarn deploy diff --git a/package.json b/package.json index 880f218..0f00609 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", + "lint": "eslint src", "deploy": "gh-pages -d build" }, "browserslist": { From cb6c728884c8a9e10ab0d35f58a29a1612c57343 Mon Sep 17 00:00:00 2001 From: Masayuki Morisaki Date: Fri, 13 Nov 2020 09:56:12 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=E3=83=87=E3=82=A3=E3=83=AC=E3=82=AF?= =?UTF-8?q?=E3=83=88=E3=83=AA=E3=82=92=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/{workflow => workflows}/ci.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workflow => workflows}/ci.yml (100%) diff --git a/.github/workflow/ci.yml b/.github/workflows/ci.yml similarity index 100% rename from .github/workflow/ci.yml rename to .github/workflows/ci.yml From 9a49208fb5456828c9e59263e0913318a1343f8f Mon Sep 17 00:00:00 2001 From: Masayuki Morisaki Date: Fri, 13 Nov 2020 09:59:03 +0900 Subject: [PATCH 3/3] =?UTF-8?q?push=E6=99=82=E3=81=AB=E3=82=82=E5=8B=95?= =?UTF-8?q?=E3=81=8F=E3=82=88=E3=81=86=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflow/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflow/ci.yml diff --git a/.github/workflow/ci.yml b/.github/workflow/ci.yml new file mode 100644 index 0000000..a3943fb --- /dev/null +++ b/.github/workflow/ci.yml @@ -0,0 +1,40 @@ +name: KukuPad CI + +on: [push pull_request] + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: setup node.jobs + uses: actions/setup-node@v1 + with: + node-version: 15.x + + - name: install package + run: yarn + + - name: eslint + run: yarn lint + + deploy: + if: github.event.pull_request.merged == 'true' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: setup node.jobs + uses: actions/setup-node@v1 + with: + node-version: 15.x + + - name: install package + run: yarn + + - name: build + run: yarn build + + - name: deploy + run: yarn deploy