forked from project-codeflare/codeflare-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (24 loc) · 993 Bytes
/
olm_scorecard.yml
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
name: Operator Scorecard Test
on: [push, pull_request]
jobs:
scorecard-check:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Install Operator SDK
run: |
curl -LO https://github.com/operator-framework/operator-sdk/releases/download/v1.24.1/operator-sdk_linux_amd64
chmod +x operator-sdk_linux_amd64
sudo mv operator-sdk_linux_amd64 /usr/local/bin/operator-sdk
- name: Build bundle
run: make bundle-build
- name: Install yq
run: |
sudo wget -O /usr/bin/yq https://github.com/mikefarah/yq/releases/download/v4.6.1/yq_linux_amd64
sudo chmod +x /usr/bin/yq
- name: Modify scorecard config
run: |
yq e 'del(.stages[].tests[] | select(.labels.test == "olm-crds-have-resources-test"))' -i bundle/tests/scorecard/config.yaml
- name: Run Operator SDK Scorecard
run: operator-sdk scorecard bundle/tests/scorecard/config.yaml