mirror of
https://github.com/Azure/setup-kubectl.git
synced 2026-07-06 18:09:30 +00:00
Bumps the actions group in /.github/workflows with 1 update: [actions/setup-python](https://github.com/actions/setup-python).
Updates `actions/setup-python` from 6.2.0 to 6.3.0
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](a309ff8b42...ece7cb06ca)
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-version: 6.3.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: actions
...
Signed-off-by: dependabot[bot] <support@github.com>
56 lines
1.6 KiB
YAML
56 lines
1.6 KiB
YAML
name: Integration test for setup-kubectl
|
|
on: # rebuild any PRs and main branch changes
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- 'releases/*'
|
|
push:
|
|
branches:
|
|
- main
|
|
- 'releases/*'
|
|
|
|
jobs:
|
|
run-integration-test:
|
|
name: Validate release and master branch
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
KUBECONFIG: /home/runner/.kube/config
|
|
PR_BASE_REF: ${{ github.event.pull_request.base.ref }}
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
name: Checkout from PR branch
|
|
|
|
- id: action-npm-build
|
|
name: npm install and build
|
|
run: |
|
|
echo $PR_BASE_REF
|
|
if [[ $PR_BASE_REF != releases/* ]]; then
|
|
npm install
|
|
npm run build
|
|
# remove node_modules to match production environment where only index.js is present
|
|
rm -rf node_modules
|
|
fi
|
|
|
|
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
name: Install Python
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install requests library
|
|
run: pip install requests
|
|
|
|
- name: Setup kubectl latest
|
|
uses: ./
|
|
with:
|
|
version: 'latest'
|
|
|
|
- name: Validate kubectl setup
|
|
run: python test/validate-kubectl.py latest
|
|
|
|
- name: Setup kubectl old version
|
|
uses: ./
|
|
with:
|
|
version: 'v1.15.1'
|
|
|
|
- name: Validate kubectl setup old version
|
|
run: python test/validate-kubectl.py 'v1.15.1'
|