From bc013f0f048d58b0cc85734969942a56b34141cf Mon Sep 17 00:00:00 2001 From: heejung0413 Date: Thu, 4 Apr 2024 21:32:53 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9BFix:=20github=20workflows=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-production.yml | 14 -------------- .github/workflows/lint-check.yml | 15 +++++++++++++++ .github/workflows/type-check.yml | 15 +++++++++++++++ .husky/pre-commit | 0 4 files changed, 30 insertions(+), 14 deletions(-) delete mode 100644 .github/workflows/deploy-production.yml create mode 100644 .github/workflows/lint-check.yml create mode 100644 .github/workflows/type-check.yml mode change 100755 => 100644 .husky/pre-commit diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml deleted file mode 100644 index 7e54a92..0000000 --- a/.github/workflows/deploy-production.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Deploy Production - -on: - push: - branches: ['main'] - -jobs: - amplify-webhook: - runs-on: ubuntu-latest - env: - AMPLIFY_WEBHOOK_URL: ${{secrets.AMPLIFY_WEBHOOK_URL}} - steps: - - uses: actions/checkout@v2 - - run: curl -X POST -d {} $AMPLIFY_WEBHOOK_URL -H "Content-Type:application/json" diff --git a/.github/workflows/lint-check.yml b/.github/workflows/lint-check.yml new file mode 100644 index 0000000..faad6ef --- /dev/null +++ b/.github/workflows/lint-check.yml @@ -0,0 +1,15 @@ +name: lint check + +on: pull_request + +jobs: + eslint-test: + name: eslint test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '18.18.0' + - run: npm install + - run: npm run lint diff --git a/.github/workflows/type-check.yml b/.github/workflows/type-check.yml new file mode 100644 index 0000000..541053a --- /dev/null +++ b/.github/workflows/type-check.yml @@ -0,0 +1,15 @@ +name: type check + +on: pull_request + +jobs: + type-test: + name: type test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '18.18.0' + - run: npm install + - run: npm run typecheck diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100755 new mode 100644