From 419727d9c5d15e4f32898e3287c71255a3131d3e Mon Sep 17 00:00:00 2001 From: NkwaTambe Date: Wed, 23 Oct 2024 14:50:32 +0100 Subject: [PATCH] feat:update workflow to build project remotely on pull/merge request --- .github/workflows/analyses.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/analyses.yml b/.github/workflows/analyses.yml index 95f1811..0262b35 100644 --- a/.github/workflows/analyses.yml +++ b/.github/workflows/analyses.yml @@ -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