Update test.yml
This commit is contained in:
parent
253a411426
commit
2f03546c39
1 changed files with 2 additions and 16 deletions
18
.github/workflows/test.yml
vendored
18
.github/workflows/test.yml
vendored
|
@ -17,27 +17,13 @@ jobs:
|
||||||
- name: 'Checking out repo code'
|
- name: 'Checking out repo code'
|
||||||
uses: actions/checkout@v1
|
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'
|
- name: 'Run L0 tests'
|
||||||
run: |
|
run: |
|
||||||
|
npm install
|
||||||
npm run test
|
npm run test
|
||||||
|
|
||||||
- name : 'Run test coverage'
|
- 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:
|
env:
|
||||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue