-
Notifications
You must be signed in to change notification settings - Fork 5
119 lines (114 loc) · 4.08 KB
/
pr.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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: CI
on:
pull_request:
branches:
- main
- staging
- release/*
push:
branches:
- main
- staging
- release/*
workflow_dispatch:
inputs:
nussknacker_version:
description: "Nussknacker version"
required: false
type: string
env:
# for k8s tests purpose - sets correct repo and adds --devel flag
DEVEL: ${{ (github.base_ref == 'staging' || github.ref_name == 'staging') && 'true' || 'false' }}
NUSSKNACKER_VERSION: ${{ inputs.nussknacker_version != '' && inputs.nussknacker_version || (github.base_ref == 'staging' || github.ref_name == 'staging') && 'staging-latest' || 'latest' }}
jobs:
docker-compose-streaming-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
env:
# temporarily force NU built with scala 2.12, cause default build (2.13) does not work with Flink out of the box now.
NUSSKNACKER_VERSION: ${{
endsWith(inputs.nussknacker_version, 'SNAPSHOT') && format('{0}_{1}', inputs.nussknacker_version, 'scala-2.12') ||
inputs.nussknacker_version != '' && inputs.nussknacker_version ||
(github.base_ref == 'staging' || github.ref_name == 'staging') && 'staging-latest_scala-2.12' ||
'latest_scala-2.12' }}
steps:
- name: Install docker in macos
if: matrix.os == 'macos-latest'
run: |
brew install docker --cask
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- name: Print Nussknacker version
run: |
echo "Nussknacker version: $NUSSKNACKER_VERSION"
- name: install quickstart
shell: bash
run: ./docker/streaming/start.sh
- name: Test quickstart
shell: bash
run: ./common/tests/testDockerStreaming.sh
helm-k8s-requestresponse-test:
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: Print Nussknacker version
run: |
echo "Nussknacker version: $NUSSKNACKER_VERSION"
- uses: AbsaOSS/[email protected]
with:
cluster-name: "k3s-default"
k3d-version: "v5.4.1" # default version - change with caution, there was some problem after upgrade
args: >-
--config=.k3d/single-cluster.yml
--trace
- name: install additional components
shell: bash
run: ./k8s-helm/additional/install-request-response.sh
- name: verify quickstart template
shell: bash
run: COMMAND=template ./k8s-helm/install-request-response.sh
- name: install quickstart
shell: bash
run: ./k8s-helm/install-request-response.sh --debug
- name: Test quickstart
shell: bash
run: ./common/tests/testK8sRequestResponse.sh
helm-k8s-streaming-test:
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: Print Nussknacker version
run: |
echo "Nussknacker version: $NUSSKNACKER_VERSION"
- uses: AbsaOSS/[email protected]
with:
cluster-name: "k3s-default"
k3d-version: "v5.4.1" # default version - change with caution, there was some problem after upgrade
args: >-
--config=.k3d/single-cluster.yml
--trace
- name: install additional components
shell: bash
run: ./k8s-helm/additional/install-streaming.sh
- name: verify quickstart template
shell: bash
run: COMMAND=template ./k8s-helm/install-streaming.sh
- name: install quickstart
shell: bash
run: ./k8s-helm/install-streaming.sh --debug
- name: Test quickstart
shell: bash
run: ./common/tests/testK8sStreaming.sh