diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a0d5784..4b7b68a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,13 +20,14 @@ jobs: - name: Extract branch name id: extract_branch run: | - echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" + echo "##[set-output name=branchname;]$(echo ${GITHUB_REF##*/})" - name: 'Validate build' + if: github.event.pull_request.base.ref == 'master' || steps.extract_branch.outputs.branchname == 'master' run: | - echo ${{steps.extract_branch.outputs.branch}} npm install npm build + - name: 'Run L0 tests' run: | npm run test