Skip to content

oc-installer Platform Test #811

oc-installer Platform Test

oc-installer Platform Test #811

Workflow file for this run

name: oc-installer Platform 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, macos-latest, windows-latest]
oc_version: [latest]
runs-on: ${{ matrix.os }}
steps:
# Checkout oc installer action github repository
- name: Checkout oc-installer action
uses: actions/checkout@v4
- 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')"
run: |
oc version
- name: Test (v4)
if: "startsWith(matrix.oc_version, '4') || matrix.oc_version == 'latest'"
run: |
oc version --client