Skip to content

Commit

Permalink
feat:update workflow to build project remotely on pull/merge request
Browse files Browse the repository at this point in the history
  • Loading branch information
NkwaTambe committed Oct 23, 2024
1 parent 9d0b62f commit 419727d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/analyses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,25 @@ jobs:
path: node_modules
key: ${{ github.sha }}

build:
needs: install
runs-on: ubuntu-latest
steps:
# Check out the code from the repository
- uses: actions/checkout@v2

# Use cached node_modules to avoid reinstalling dependencies
- name: Cached node modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ github.sha }}

# Run the build command
- name: Build
run: npm run build


# Step 2: Run lint checks with ESLint
lint:
needs: install # Depends on the install job
Expand Down

0 comments on commit 419727d

Please sign in to comment.