-
Notifications
You must be signed in to change notification settings - Fork 19
39 lines (33 loc) · 975 Bytes
/
tests.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
name: oc-installer Versions Test
on:
push:
workflow_dispatch:
pull_request:
schedule:
- cron: '0 0 * * *' # every day at midnight
jobs:
install:
name: oc Install
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
oc_version: [ 3.11.173, 4.6, 'https://mirror.openshift.com/pub/openshift-v3/clients/3.11.318/linux/oc.tar.gz' ]
runs-on: ${{ matrix.os }}
steps:
# Checkout oc installer action github repository
- name: Checkout oc-installer action
uses: actions/checkout@v2
- name: Install
uses: ./
with:
oc_version: ${{ matrix.oc_version }}
# oc 3 doesn't have --client flag
- name: Test (v3)
if: "startsWith(matrix.oc_version, '3') || contains(matrix.oc_version, 'openshift-v3')"
run: |
oc version
- name: Test (v4)
if: "startsWith(matrix.oc_version, '4')"
run: |
oc version --client