Skip to content

Merge pull request #44 from kubescape/bugfix/gorm-version #79

Merge pull request #44 from kubescape/bugfix/gorm-version

Merge pull request #44 from kubescape/bugfix/gorm-version #79

name: Test Kubernetes Cluster
on:
pull_request:
types:
[ opened, synchronize, reopened ]
push:
branches:
- main
paths-ignore:
- '**.md'
jobs:
test:
permissions:
checks: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Build Go utility
run: make build
- name: Install kind
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Create kind cluster
run: |
kind create cluster
- name: Install kubectl
run: |
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
- name: Install jq
run: sudo apt-get install jq -y
- name: Run test script
run: python ./scripts/run-all-tests.py
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: tests/test-results.xml