From d7337ce45628c5413eae19ada9ccee365a29bfa3 Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Tue, 2 Nov 2021 20:50:12 +0500 Subject: [PATCH] chore: updated build.yml --- .github/workflows/build.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a73b8e3..0400edd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,6 @@ name: SASjs Server Build on: - push: pull_request: jobs: @@ -18,16 +17,22 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} + - name: Install Dependencies run: npm ci + - name: Check Code Style run: npm run lint + - name: Run Unit Tests run: npm test - - name: Build Package - run: npm run package:lib env: CI: true ACCESS_TOKEN_SECRET: ${{secrets.ACCESS_TOKEN_SECRET}} REFRESH_TOKEN_SECRET: ${{secrets.REFRESH_TOKEN_SECRET}} AUTH_CODE_SECRET: ${{secrets.AUTH_CODE_SECRET}} + + - name: Build Package + run: npm run package:lib + env: + CI: true