From 2f03546c39c7c68bbb8d214d4f167cc7d9dc52d5 Mon Sep 17 00:00:00 2001 From: Deepak Sattiraju Date: Tue, 16 Mar 2021 11:52:33 +0530 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f442e20..396dd7a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,27 +17,13 @@ jobs: - name: 'Checking out repo code' uses: actions/checkout@v1 - - name: Extract branch name - id: extract_branch - run: | - echo "##[set-output name=branchname;]$(echo ${GITHUB_REF##*/})" - - - name: 'Install dependency for main' - if: github.event.pull_request.base.ref == 'main' || steps.extract_branch.outputs.branchname == 'main' - run: | - npm install - - - name: 'Install dependency for releases' - if: github.event.pull_request.base.ref == 'releases/v1' || steps.extract_branch.outputs.branchname == 'releases/v1' - run: | - npm install --only=dev - - name: 'Run L0 tests' run: | + npm install npm run test - name : 'Run test coverage' - if: runner.os == 'Windows' && (github.event.pull_request.base.ref == 'releases/v1' || github.event.pull_request.base.ref == 'master') + if: runner.os == 'Windows' && (github.event.pull_request.base.ref == 'releases/v1' || github.event.pull_request.base.ref == 'main') env: PR_NUMBER: ${{ github.event.pull_request.number }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}