Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SAINIAbhishek committed Sep 13, 2024
1 parent 6eeee0a commit 3855fc7
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,31 +82,31 @@ jobs:
run: npm run prettier
working-directory: ./frontend

# Step: Security audit Frontend
security-frontend:
needs: [npm-frontend]
uses: SAINIAbhishek/shared-workflows/.github/workflows/security-audit.yml@main
with:
node-version: "20.17.0"
lock-file: "frontend/package-lock.json"
cache-path: "frontend/node_modules"
cache-key-prefix: "frontend"
working-directory: "frontend"

# Step: Security audit Server
security-server:
needs: [npm-server]
uses: SAINIAbhishek/shared-workflows/.github/workflows/security-audit.yml@main
with:
node-version: "20.17.0"
lock-file: "server/package-lock.json"
cache-path: "server/node_modules"
cache-key-prefix: "server"
working-directory: "server"
# # Step: Security audit Frontend
# security-frontend:
# needs: [npm-frontend]
# uses: SAINIAbhishek/shared-workflows/.github/workflows/security-audit.yml@main
# with:
# node-version: "20.17.0"
# lock-file: "frontend/package-lock.json"
# cache-path: "frontend/node_modules"
# cache-key-prefix: "frontend"
# working-directory: "frontend"

# # Step: Security audit Server
# security-server:
# needs: [npm-server]
# uses: SAINIAbhishek/shared-workflows/.github/workflows/security-audit.yml@main
# with:
# node-version: "20.17.0"
# lock-file: "server/package-lock.json"
# cache-path: "server/node_modules"
# cache-key-prefix: "server"
# working-directory: "server"

# Step: Run unit tests
test-frontend:
needs: [lint, format-frontend, security-frontend]
needs: [lint, format-frontend]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:

# Step: Build the Server project
build-server:
needs: [lint, security-server]
needs: [lint]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand Down

0 comments on commit 3855fc7

Please sign in to comment.