Skip to content

Commit

Permalink
Update docker-cicd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leukosaima authored Jan 11, 2024
1 parent 660502e commit 2eabd00
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .github/workflows/docker-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 2eabd00

Please sign in to comment.