From a1d7cda2835f8e912d58a5da151f242eab7ca13c Mon Sep 17 00:00:00 2001 From: ccrsxx Date: Wed, 8 Nov 2023 22:46:54 +0700 Subject: [PATCH] feat: add deployment workflow --- .github/workflows/deployment.yaml | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/deployment.yaml diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml new file mode 100644 index 0000000..08b8eec --- /dev/null +++ b/.github/workflows/deployment.yaml @@ -0,0 +1,47 @@ +name: ๐Ÿš€ Deployment + +on: + push: + branches: ['main'] + pull_request: + branches: ['main'] + +jobs: + type-check: + name: โœ… Type Check + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Download deps + run: npm ci + + - name: Check types + run: npm run type-check + + eslint: + name: ๐Ÿงช ESLint + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Download deps + run: npm ci + + - name: Lint + run: npm run lint + + prettier: + name: ๐Ÿ” Prettier + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Download deps + run: npm ci + + - name: Format + run: npm run format