oc-installer Platform Test #803
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |