mirror of
https://github.com/ditkrg/k8s-set-context.git
synced 2026-01-22 22:06:49 +00:00
To get review on the approach of installing only dev-dep in case of releases
This commit is contained in:
parent
7f47ff8546
commit
681512ab66
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
@ -17,15 +17,26 @@ jobs:
|
|||||||
- name: 'Checking out repo code'
|
- name: 'Checking out repo code'
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: 'Install dependency'
|
- name: Extract branch name
|
||||||
|
id: extract_branch
|
||||||
|
run: |
|
||||||
|
echo "##[set-output name=branchname;]$(echo ${GITHUB_REF##*/})"
|
||||||
|
|
||||||
|
- name: 'Install dependency for master'
|
||||||
|
if: github.event.pull_request.base.ref == 'master' || steps.extract_branch.outputs.branchname == 'master'
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
npm build
|
npm build
|
||||||
|
|
||||||
|
- 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
|
||||||
|
npm build
|
||||||
|
|
||||||
- name: 'Run L0 tests'
|
- name: 'Run L0 tests'
|
||||||
run: |
|
run: |
|
||||||
npm run test
|
npm run test
|
||||||
|
|
||||||
- name : 'Run test coverage'
|
- name : 'Run test coverage'
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
env:
|
env:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user