-
Notifications
You must be signed in to change notification settings - Fork 18
44 lines (37 loc) · 1.1 KB
/
multiplatform.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
name: Multiplatform Workflow
on:
push:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # every day at midnight
jobs:
login:
name: Multiplatform Workflow
strategy:
fail-fast: false
max-parallel: 1 # this is just to prevent concurrent modification of my k8s cluster.
matrix:
# os: [ ubuntu-latest, macos-latest, windows-latest ]
os: [ macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
env:
TEST_MANIFEST: __tests__/manifests/timer.yaml
TEST_NAMESPACE: github-actions-bot-dev
steps:
- uses: actions/checkout@v4
- name: Install oc
if: "runner.os != 'Linux'"
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: latest
- name: Test oc
run: oc version --client
- name: Authenticate and set context
uses: ./
with:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
namespace: ${{ env.TEST_NAMESPACE }}
- name: Test
run: |
oc api-resources