Fixing discrepancies in integration test yaml.
This commit is contained in:
parent
36af8055ff
commit
8fa634631e
1 changed files with 11 additions and 27 deletions
38
.github/workflows/integration-tests.yml
vendored
38
.github/workflows/integration-tests.yml
vendored
|
@ -17,26 +17,21 @@ jobs:
|
||||||
os: [windows-latest, ubuntu-latest, macos-latest]
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Set job type
|
|
||||||
id: job-type
|
|
||||||
run: if [ '${{ github.event.inputs.reason }}' == 'cron' ]; then echo "::set-output name=type::$(echo cron)"; else echo "::set-output name=type::$(echo pr)"; fi
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
if: steps.job-type.outputs.type == 'pr'
|
|
||||||
name: Checkout from PR branch
|
name: Checkout from PR branch
|
||||||
with:
|
with:
|
||||||
repository: Azure/setup-kubectl
|
|
||||||
ref: ${{ github.event.client_payload.frombranch }}
|
|
||||||
path: 'setup-kubectl'
|
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
if: steps.job-type.outputs.type == 'cron'
|
|
||||||
name: Checkout from main branch
|
|
||||||
with:
|
|
||||||
repository: Azure/setup-kubectl
|
|
||||||
path: 'setup-kubectl'
|
path: 'setup-kubectl'
|
||||||
|
|
||||||
|
- id: action-npm-build
|
||||||
|
name: npm install and build
|
||||||
|
run: |
|
||||||
|
cd setup-kubectl
|
||||||
|
echo $PR_BASE_REF
|
||||||
|
if [[ $PR_BASE_REF != releases/* ]]; then
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
fi
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
name: Install Python
|
name: Install Python
|
||||||
with:
|
with:
|
||||||
|
@ -45,17 +40,6 @@ jobs:
|
||||||
- name: Install requests library
|
- name: Install requests library
|
||||||
run: pip install requests
|
run: pip install requests
|
||||||
|
|
||||||
- name: Building latest changes
|
|
||||||
if: steps.job-type.outputs.type == 'cron' || (steps.job-type.outputs.type == 'pr' && github.event.client_payload.tobranch == 'main')
|
|
||||||
run: |
|
|
||||||
cd setup-kubectl
|
|
||||||
npm install
|
|
||||||
npm run build
|
|
||||||
- name: Setup kubectl
|
|
||||||
uses: ./setup-kubectl
|
|
||||||
with:
|
|
||||||
version: latest
|
|
||||||
|
|
||||||
- name: Validate kubectl setup
|
- name: Validate kubectl setup
|
||||||
run: python test/validate-kubectl.py latest
|
run: python test/validate-kubectl.py latest
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue