Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Avoid compilation GH actions on script push #313

Avoid compilation GH actions on script push

Avoid compilation GH actions on script push #313

Workflow file for this run

---
name: "Default compilation, tests and deploy"
"on":
push:
branches: [main]
paths-ignore:
- '**.md'
- '**.sh'
- '.wordlist.txt'
pull_request:
paths-ignore:
- '**.md'
- '**.sh'
- '.wordlist.txt'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.2'
- name: Build
run: make build
- name: Test
run: make test
- name: Podman install
run: |
sudo apt-get update -y
# sudo apt-get upgrade -y
sudo apt-get install -y cri-o cri-o-runc conntrack containernetworking-plugins\
cri-tools podman
- name: Minikube Installation
id: minikube
uses: medyagh/setup-minikube@master
with:
cache: false
cpus: 4
memory: 4000m
driver: podman
## container-runtime: containerd
## kubernetes-version: v1.22.3
## cni: bridge
## addons: registry,ingress
## extra-config: 'kubelet.max-pods=10'
## feature-gates: 'DownwardAPIHugePages=true'
## mount-path: '/Users/user1/test-files:/testdata'
## wait: false
## insecure-registry: 'localhost:5000,10.0.0.0/24'
## start-args: '--delete-on-failure --subnet 192.168.50.0'
- name: Status
run: minikube status
- name: Cluster Test
run: CLUSTER_TANG_OPERATOR_TEST=1 make test
- name: Deploy and Scorecard
run: |
sh .github/workflows/scripts/retrieve_and_run_operator_sdk.bash \
"v1.33.0" "5m" "quay.io/sec-eng-special/tang-operator-bundle" \
"${GITHUB_HEAD_REF}"