Skip to content

build(deps): bump semver from 6.3.0 to 6.3.1 #49

build(deps): bump semver from 6.3.0 to 6.3.1

build(deps): bump semver from 6.3.0 to 6.3.1 #49

name: Test configure-kubectl-oke action
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
jobs:
test-action-home-region:
runs-on: ubuntu-latest
name: Test the action in the tenancy home region
env:
OCI_CLI_USER: ${{ secrets.OCI_CLI_USER }}
OCI_CLI_TENANCY: ${{ secrets.OCI_CLI_TENANCY }}
OCI_CLI_FINGERPRINT: ${{ secrets.OCI_CLI_FINGERPRINT }}
OCI_CLI_KEY_CONTENT: ${{ secrets.OCI_CLI_KEY_CONTENT }}
OCI_CLI_REGION: ${{ secrets.OCI_CLI_REGION }}
steps:
- uses: actions/checkout@v3
- name: Configure Kubectl for OKE cluster in home region
uses: ./
id: test-configure-kubectl-oke-action
with:
cluster: ${{ secrets.OKE_CLUSTER_ID }}
- name: Check that the correct kubectl version is active
run: |
which kubectl
kubectl version --short
- name: Get pods using Kubectl
run: kubectl get pods -A
test-action-new-region:
runs-on: ubuntu-latest
name: Test the action in a new region
env:
OCI_CLI_USER: ${{ secrets.OCI_CLI_USER }}
OCI_CLI_TENANCY: ${{ secrets.OCI_CLI_TENANCY }}
OCI_CLI_FINGERPRINT: ${{ secrets.OCI_CLI_FINGERPRINT }}
OCI_CLI_KEY_CONTENT: ${{ secrets.OCI_CLI_KEY_CONTENT }}
OCI_CLI_REGION: ${{ secrets.OCI_CLI_NEW_REGION }}
steps:
- uses: actions/checkout@v3
- name: Configure Kubectl for OKE cluster in new region
uses: ./
id: test-configure-kubectl-oke-action-new-region
with:
cluster: ${{ secrets.OKE_NEW_CLUSTER_OCID }}
- name: Get pods using Kubectl
run: kubectl get nodes -A