-
Notifications
You must be signed in to change notification settings - Fork 487
94 lines (86 loc) · 2.67 KB
/
cd_dev_mac.yaml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# This workflow test deployment of latest dev release
name: CD_Dev_Mac
permissions:
contents: read
concurrency:
group: cd_dev_mac
cancel-in-progress: true
on:
# push:
# branches: [master]
# pull_request:
# branches: [master]
# workflow_run:
# workflows: [Publish]
# branches: [master]
# types: [completed]
workflow_dispatch:
inputs:
verbose:
description: "Set --verbose to get verbose build output"
required: false
default: ""
env:
USE_VERSION: ${{ github.event.inputs.alt_version }}
K3D_VERSION: v5.4.1
jobs:
# Perform E2E sanity checks
verify_latest_releases:
name: Verify latest run ${{ matrix.run }} (${{ matrix.cluster_type }}) on (${{ matrix.os }}),
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest]
cluster_type: [local,k8]
run: [r1]
env:
SLEEP: 10
TOPIC: foobar
steps:
- uses: actions/checkout@v4
- name: Install Docker for Mac
if: ${{ matrix.cluster_type == 'k8' }}
uses: docker-practice/actions-setup-docker@master
timeout-minutes: 5
- name: Set up Kind for Mac
if: ${{ matrix.cluster_type == 'k8' }}
run: |
brew install kind
kind create cluster --config k8-util/cluster/kind.yaml
- name: Setup Fluvio
uses: infinyon/fluvio/.github/actions/setup-fluvio@master
with:
version: latest
- name: Install Local Fluvio cluster
timeout-minutes: 3
if: ${{ matrix.cluster_type == 'local' }}
run: fluvio cluster start --local
- name: Install k8 Fluvio cluster
timeout-minutes: 3
if: ${{ matrix.cluster_type == 'k8' }}
run: |
fluvio cluster start --k8 --spu-storage-size 1 --image-version latest --proxy-addr 127.0.0.1
- name: Run E2E Test
timeout-minutes: 2
run: |
date +"%Y-%m-%dT%H:%M:%S%z"
fluvio version
fluvio topic create ${{ env.TOPIC }}
# wait for topic to be created
sleep ${{ env.SLEEP }}
date +"%Y-%m-%dT%H:%M:%S%z"
echo foo | fluvio produce ${{ env.TOPIC }}
fluvio consume ${{ env.TOPIC }} --start 0 -d | grep -F -w "foo"
fluvio topic delete "${{ env.TOPIC }}"
- name: Run diagnostics
if: ${{ !success() }}
timeout-minutes: 5
run: fluvio cluster diagnostics
- name: Upload diagnostics
uses: actions/upload-artifact@v4
timeout-minutes: 5
if: ${{ !success() }}
with:
name: cd_failure_${{ matrix.run }}_${{ matrix.cluster_type }}
path: diagnostics*.gz