-
Notifications
You must be signed in to change notification settings - Fork 297
60 lines (49 loc) · 1.25 KB
/
pr.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
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
59
60
name: PR checks
on:
pull_request:
branches:
- master
env:
GO111MODULE: on
SDK_VERSION: "1.17.0"
MINIKUBE_WANTUPDATENOTIFICATION: false
MINIKUBE_WANTREPORTERRORPROMPT: false
K8S_VERSION: "1.21.3"
MINIKUBE_VERSION: "1.26.0"
OLM_VERSION: "0.22.0"
TEST_ACCEPTANCE_CLI: "kubectl"
TEST_RESULTS: "out/acceptance-tests"
jobs:
lint:
name: Code Quality
runs-on: ubuntu-20.04
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "^1.18"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
architecture: "x64"
- name: Checkout repo
uses: actions/checkout@v4
unit:
name: Unit Tests with Code coverage
runs-on: ubuntu-20.04
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "^1.18"
- name: Checkout Git Repository
uses: actions/checkout@v4
- name: Unit Tests with Code Coverage
run: ./scripts/openshiftci-presubmit-unittests.sh
- name: Upload Code Coverage Report
uses: codecov/codecov-action@v3
with:
file: coverage.out
verbose: true
fail_ci_if_error: true