-
Notifications
You must be signed in to change notification settings - Fork 30
58 lines (47 loc) · 1.66 KB
/
scorecard.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: "Scorecard tests"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
scorecard-tests:
name: Scorecard test
runs-on: ubuntu-22.04
strategy:
matrix:
kube-version:
- "1.21"
- "1.28"
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: "install kuttl"
run: ./hack/install/install-kuttl.sh
- name: "start kind"
env:
KUBE_VERSION: ${{ matrix.kube-version }}
run: |
# fix for https://bugs.launchpad.net/ubuntu/+source/libpod/+bug/2024394
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/golang-github-containernetworking-plugins/containernetworking-plugins_1.1.1+ds1-3_amd64.deb
sudo dpkg -i containernetworking-plugins_1.1.1+ds1-3_amd64.deb
# attempt to fix https://github.com/grafana/tempo-operator/issues/380 by using podman instead of docker
sudo KIND_EXPERIMENTAL_PROVIDER=podman kind create cluster --config kind-$KUBE_VERSION.yaml --wait 5m
mkdir ~/.kube
sudo cp /root/.kube/config ~/.kube/config
sudo chown $(id -u):$(id -g) ~/.kube/config
- name: "run community scorecard tests"
run: make scorecard-tests
env:
BUNDLE_VARIANT: community
- name: "run OpenShift scorecard tests"
run: make scorecard-tests
env:
BUNDLE_VARIANT: openshift