Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SAINIAbhishek committed Oct 4, 2024
1 parent e206bde commit b0cd202
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 64 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

# Restore Modules cache
- name: Restore Modules Cache
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -48,9 +47,3 @@ jobs:
MAILTRAP_TESTING_HOST: ${{ vars.MAILTRAP_TESTING_HOST}}
REFRESH_TOKEN_SECRET_KEY: ${{ secrets.REFRESH_TOKEN_SECRET_KEY}}
MAILTRAP_EMAIL_ENV: ${{ vars.MAILTRAP_EMAIL_ENV}}

- name: Save ${{ inputs['environment'] }} ${{ vars.TOKEN_ISSUER}} Build Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ inputs['environment'] }}-build
path: build
17 changes: 7 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ jobs:
cache-key-prefix: 'auth'
working-directory: './'

# Step: Lint the code
# Step: Linting check
lint:
needs: [npm] # Wait for dependencies to be installed before linting
needs: [npm]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

# Restore Modules cache
- name: Restore Modules Cache
uses: actions/cache@v3
with:
Expand All @@ -40,27 +39,25 @@ jobs:
run: npm run lint
working-directory: ./

# Step: Formatting
# Step: Formatting check
format:
needs: [npm] # Dependencies must be installed before formatting
needs: [npm]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

# Restore Modules cache
- name: Restore Modules Cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-auth-${{ hashFiles('package-lock.json') }}

# Format the code with Prettier
- name: Checking Formatting with Prettier
run: npm run prettier
working-directory: ./

# Step: Security audit
# Step: Security audit check
dependencies-check:
needs: [npm]
uses: SAINIAbhishek/shared-workflows/.github/workflows/security-audit.yml@main
Expand All @@ -71,7 +68,7 @@ jobs:
cache-key-prefix: 'auth'
working-directory: './'

# Step: Build the project
dev:
# Step: Build check
build:
needs: [lint, format, dependencies-check]
uses: ./.github/workflows/build.yml
47 changes: 0 additions & 47 deletions .github/workflows/prod.yml

This file was deleted.

0 comments on commit b0cd202

Please sign in to comment.