-
Notifications
You must be signed in to change notification settings - Fork 5
65 lines (57 loc) · 1.44 KB
/
test.yaml
File metadata and controls
65 lines (57 loc) · 1.44 KB
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
61
62
63
64
65
name: Test
on:
pull_request:
branches:
- main
paths-ignore:
- '**.md'
- 'LICENSE'
push:
branches:
- main
paths-ignore:
- '**.md'
- 'LICENSE'
schedule:
- cron: "0 7 * * *"
jobs:
test-default:
strategy:
fail-fast: false
matrix:
# ubuntu-22.04 - not work as crio is not available yet
# ubuntu-18.04 - not work as CI doesn't pass; need more investigation
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Create MicroShift cluster
uses: ./
- name: Test
run: |
sleep 1m
oc version
oc cluster-info
oc wait --for=condition=Ready nodes --all --timeout=300s
oc describe nodes
oc wait --for=condition=Ready pods --all -A --timeout=300s
oc get pods -A
test-with-inputs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Create MicroShift cluster with custom version
uses: ./
with:
version: "4.8.0-0.microshift-2022-03-11-124751"
- name: Test
run: |
sleep 1m
oc version
oc cluster-info
oc wait --for=condition=Ready nodes --all --timeout=300s
oc describe nodes
oc wait --for=condition=Ready pods --all -A --timeout=300s
oc get pods -A