mirror of
https://github.com/ditkrg/k8s-set-context.git
synced 2026-01-22 22:06:49 +00:00
Install dependencies in all runs
This commit is contained in:
parent
e5b0dcad62
commit
7f47ff8546
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
@ -17,20 +17,15 @@ jobs:
|
|||||||
- name: 'Checking out repo code'
|
- name: 'Checking out repo code'
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Extract branch name
|
- name: 'Install dependency'
|
||||||
id: extract_branch
|
|
||||||
run: |
|
|
||||||
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: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
npm build
|
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