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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..640be31 --- /dev/null +++ b/.github/workflows/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": {