From 11947323a2e7f715ac7d41521c68f2100d6400d0 Mon Sep 17 00:00:00 2001 From: ccrsxx Date: Wed, 8 Nov 2023 22:43:59 +0700 Subject: [PATCH] feat: add deployment workflow --- .github/workflows/deployment.yaml | 60 +++++++++++++++++++++++++++++++ 1 file changed, 60 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..3fe5269 --- /dev/null +++ b/.github/workflows/deployment.yaml @@ -0,0 +1,60 @@ +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 + + jest: + name: ๐Ÿƒ Jest + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Download deps + run: npm ci + + - name: Test + run: npm run test:ci