-
Notifications
You must be signed in to change notification settings - Fork 30
53 lines (44 loc) · 1.19 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
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 ${{ matrix.name }}
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- name: min
kube-version: "1.25"
- name: max
kube-version: "1.30"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install chainsaw
run: |
set -e
make chainsaw
- name: "start kind"
env:
KUBE_VERSION: ${{ matrix.kube-version }}
run: |
make start-kind
- name: "run community scorecard tests"
run: for i in {1..5}; do make scorecard-tests && break || sleep 10; done
env:
BUNDLE_VARIANT: community
- name: "run OpenShift scorecard tests"
run: for i in {1..5}; do make scorecard-tests && break || sleep 10; done
env:
BUNDLE_VARIANT: openshift