From 2eabd00d52cd1807dcb67fda9d5bd045bd67df76 Mon Sep 17 00:00:00 2001 From: leukosaima <187358+leukosaima@users.noreply.github.com> Date: Wed, 10 Jan 2024 22:19:23 -0500 Subject: [PATCH] Update docker-cicd.yml --- .github/workflows/docker-cicd.yml | 33 ++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-cicd.yml b/.github/workflows/docker-cicd.yml index 874bc7a0..5d80468d 100644 --- a/.github/workflows/docker-cicd.yml +++ b/.github/workflows/docker-cicd.yml @@ -3,10 +3,41 @@ name: docker-cicd on: push: branches: - - 'main' + - main + +env: + # We do not need Husky hooks installed for this workflow. + HUSKY: 0 jobs: + format_and_lint_and_test: + name: Format, Lint, Test + runs-on: ubuntu-latest + steps: + + - name: Checkout the repo + uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: "18.x" + + - name: Install dependencies + run: npm install + + - name: Format Check + run: npm run format-check + + - name: Lint + run: npm run lint + + - name: Test + run: npm run test + build_and_push: + name: Docker build and push + needs: format_and_lint_and_test runs-on: ubuntu-latest steps: