Some checks failed
Run Check Script / check (pull_request) Failing after 1m59s
40 lines
953 B
YAML
40 lines
953 B
YAML
name: Run Check Script
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: docker
|
|
container:
|
|
image: hub.nationtech.io/harmony/harmony_composer:latest
|
|
options: --network host
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install kubectl
|
|
run: |
|
|
KUBECTL_VERSION=v1.31.5
|
|
curl -LO "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl"
|
|
chmod +x kubectl
|
|
mv kubectl /usr/local/bin/kubectl
|
|
kubectl version --client
|
|
|
|
- name: Run check script
|
|
run: bash build/check.sh
|
|
|
|
- name: Debug kube connectivity
|
|
if: always()
|
|
run: |
|
|
echo "PATH=$PATH"
|
|
kubectl config current-context || true
|
|
kubectl config view --minify --raw || true
|
|
kubectl cluster-info || true
|
|
kubectl get nodes -v=8 || true
|
|
docker ps || true
|
|
|